예제 #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);
 }