Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions MutagenSdk/MutagenClient.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Coder.Desktop.MutagenSdk.Proto.Service.Daemon;
using Coder.Desktop.MutagenSdk.Proto.Service.Synchronization;
using Grpc.Core;
using Grpc.Net.Client;
Expand All @@ -8,6 +9,7 @@ public class MutagenClient : IDisposable
{
private readonly GrpcChannel _channel;

public readonly Daemon.DaemonClient Daemon;
public readonly Synchronization.SynchronizationClient Synchronization;

public MutagenClient(string dataDir)
Expand Down Expand Up @@ -39,11 +41,15 @@ public MutagenClient(string dataDir)
ConnectCallback = connectionFactory.ConnectAsync,
};

// http://localhost is fake address. The HttpHandler will be used to
// open a socket to the named pipe.
_channel = GrpcChannel.ForAddress("http://localhost", new GrpcChannelOptions
{
Credentials = ChannelCredentials.Insecure,
HttpHandler = socketsHttpHandler,
});

Daemon = new Daemon.DaemonClient(_channel);
Synchronization = new Synchronization.SynchronizationClient(_channel);
}

Expand Down
3 changes: 1 addition & 2 deletions MutagenSdk/Proto/filesystem/behavior/probe_mode.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/selection/selection.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions MutagenSdk/Proto/service/daemon/daemon.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/compression/algorithm.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/configuration.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/core/change.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/core/conflict.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/core/entry.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/core/ignore/syntax.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/core/mode.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/core/permissions_mode.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/core/problem.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/hashing/algorithm.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/rsync/receive.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/scan_mode.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/session.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/stage_mode.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/state.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/version.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/synchronization/watch_mode.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MutagenSdk/Proto/url/url.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading