public Task SetClipboard(List <ClipboardItem> list) { RpcInvokeProxy.DispatchInvoke(() => { Clipboards.SetClipboard(list); }); return(Task.CompletedTask); }
public Task SetClipboard(ClipboardItem clipboardItem) { RpcInvokeProxy.DispatchInvoke(() => { Clipboards.SetClipboard(clipboardItem); }); return(Task.CompletedTask); }
static Controller() { Instance = new Controller(); Port = NetHelper.GetAvailablePort(DEF_PORT); RpcInvokeProxy = new RpcInvokeProxy(Port); ClientProxy = MethodProxy.CreateProxy <IClient>(RpcInvokeProxy); Log.Info($"Listen port {Port}"); }
public Task Shutdown() { RpcInvokeProxy.DispatchInvoke(() => { App.Current.Shutdown(); }); return(Task.CompletedTask); }
public Task WriteDataFile() { RpcInvokeProxy.DispatchInvoke(() => { WriteClipboardsFile(); WriteSettingFile(); }); return(Task.CompletedTask); }