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