File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change
1
+ using Coder . Desktop . MutagenSdk . Proto . Service . Daemon ;
1
2
using Coder . Desktop . MutagenSdk . Proto . Service . Synchronization ;
2
3
using Grpc . Core ;
3
4
using Grpc . Net . Client ;
@@ -8,6 +9,7 @@ public class MutagenClient : IDisposable
8
9
{
9
10
private readonly GrpcChannel _channel ;
10
11
12
+ public readonly Daemon . DaemonClient Daemon ;
11
13
public readonly Synchronization . SynchronizationClient Synchronization ;
12
14
13
15
public MutagenClient ( string dataDir )
@@ -39,11 +41,15 @@ public MutagenClient(string dataDir)
39
41
ConnectCallback = connectionFactory . ConnectAsync ,
40
42
} ;
41
43
44
+ // http://localhost is fake address. The HttpHandler will be used to
45
+ // open a socket to the named pipe.
42
46
_channel = GrpcChannel . ForAddress ( "http://localhost" , new GrpcChannelOptions
43
47
{
44
48
Credentials = ChannelCredentials . Insecure ,
45
49
HttpHandler = socketsHttpHandler ,
46
50
} ) ;
51
+
52
+ Daemon = new Daemon . DaemonClient ( _channel ) ;
47
53
Synchronization = new Synchronization . SynchronizationClient ( _channel ) ;
48
54
}
49
55
You can’t perform that action at this time.
0 commit comments