Пример #1
0
 // Token: 0x06000473 RID: 1139 RVA: 0x0001CC98 File Offset: 0x0001AE98
 public void Startup(string version, string[] args)
 {
     if (SingletonAppRemoteObject.Event != null)
     {
         SingletonAppRemoteObject.Event(version, args);
     }
 }
Пример #2
0
 // Token: 0x06000471 RID: 1137 RVA: 0x0001CBC8 File Offset: 0x0001ADC8
 private void CreateClient()
 {
     try
     {
         var productName = Application.ProductName;
         var ipcChannel  = new IpcChannel();
         ChannelServices.RegisterChannel(ipcChannel, true);
         var text = string.Concat(new string[]
         {
             ipcChannel.ChannelName,
             "://",
             productName,
             "/",
             productName,
             "RemoteObject.rem"
         });
         var entry = new WellKnownClientTypeEntry(typeof(SingletonAppRemoteObject), text);
         RemotingConfiguration.RegisterWellKnownClientType(entry);
         ipcChannel.CreateMessageSink(text, null, out var text2);
         var singletonAppRemoteObject = new SingletonAppRemoteObject();
         singletonAppRemoteObject.Startup(_version, _args);
     }
     catch
     {
         Console.WriteLine("CreateClient Error");
     }
 }