Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit449bbd9

Browse files
authored
feat: add daemon service to MutagenSdk (#56)
- Adds support for an array of protobuf "entry points" in`Mutagen/Update-Proto.ps1`- Also refactors file modification/writing to be more efficient and tonot include an unnecessary byte order mark and two trailing new lines- Adds Daemon service to `MutagenClient`
1 parent0fefe8a commit449bbd9

26 files changed

+103
-61
lines changed

‎MutagenSdk/MutagenClient.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
usingCoder.Desktop.MutagenSdk.Proto.Service.Daemon;
12
usingCoder.Desktop.MutagenSdk.Proto.Service.Synchronization;
23
usingGrpc.Core;
34
usingGrpc.Net.Client;
@@ -8,6 +9,7 @@ public class MutagenClient : IDisposable
89
{
910
privatereadonlyGrpcChannel_channel;
1011

12+
publicreadonlyDaemon.DaemonClientDaemon;
1113
publicreadonlySynchronization.SynchronizationClientSynchronization;
1214

1315
publicMutagenClient(stringdataDir)
@@ -39,11 +41,15 @@ public MutagenClient(string dataDir)
3941
ConnectCallback=connectionFactory.ConnectAsync,
4042
};
4143

44+
// http://localhost is fake address. The HttpHandler will be used to
45+
// open a socket to the named pipe.
4246
_channel=GrpcChannel.ForAddress("http://localhost",newGrpcChannelOptions
4347
{
4448
Credentials=ChannelCredentials.Insecure,
4549
HttpHandler=socketsHttpHandler,
4650
});
51+
52+
Daemon=newDaemon.DaemonClient(_channel);
4753
Synchronization=newSynchronization.SynchronizationClient(_channel);
4854
}
4955

‎MutagenSdk/Proto/filesystem/behavior/probe_mode.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/selection/selection.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/service/daemon/daemon.proto

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/service/synchronization/synchronization.proto

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/compression/algorithm.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/configuration.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/core/change.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/core/conflict.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/core/entry.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/core/ignore/ignore_vcs_mode.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/core/ignore/syntax.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/core/mode.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/core/permissions_mode.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/core/problem.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/core/symbolic_link_mode.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/hashing/algorithm.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/rsync/receive.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/scan_mode.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/session.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/stage_mode.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/state.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/version.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/synchronization/watch_mode.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎MutagenSdk/Proto/url/url.proto

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp