コード例 #1
0
ファイル: Form1.cs プロジェクト: luchaofan1989/SharmIPC
 private void button1_Click(object sender, EventArgs e)
 {
     if (sm == null)
     {
         sm = new tiesky.com.SharmIpc("Global/MyNewSharmIpc", this.AsyncRemoteCallHandler, protocolVersion: tiesky.com.SharmIpc.eProtocolVersion.V2);
         //sm = new tiesky.com.SharmIpc("Global/MyNewSharmIpc", this.RemoteCall);
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: WildGenie/SharmIPC
        private void button1_Click(object sender, EventArgs e)
        {

            if (sm == null)
                //sm = new tiesky.com.SharmIpc("MyNewSharmIpc", this.AsyncRemoteCallHandler);
              sm = new tiesky.com.SharmIpc("MyNewSharmIpc", this.RemoteCall);

        }
コード例 #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (sm == null)
     {
         //sm = new tiesky.com.SharmIpc("MyNewSharmIpc", this.AsyncRemoteCallHandler);
         sm = new tiesky.com.SharmIpc("MyNewSharmIpc", this.RemoteCall);
     }
 }
コード例 #4
0
ファイル: Launcher.cs プロジェクト: Bluscream/VRChatLauncher
 public void Dispose()
 {
     if (sm != null)
     {
         Logger.Log("Disposing IPC Server");
         sm.Dispose();
         sm = null;
     }
 }
コード例 #5
0
ファイル: Launcher.cs プロジェクト: Bluscream/VRChatLauncher
 public void Init()
 {
     if (sm != null)
     {
         return;
     }
     Logger.Log("Starting IPC Server");
     sm = new tiesky.com.SharmIpc("vrchatlauncher", this.RemoteCall);
 }
コード例 #6
0
ファイル: Form1.cs プロジェクト: hhblaze/SharmIPC
        private void button1_Click(object sender, EventArgs e)
        {
            //Initializing SharmIpc with then name

            if (sm != null)
            {
                sm.Dispose();
                sm = null;
            }

            if (sm == null)
            {
                sm = new tiesky.com.SharmIpc("MyNewSharmIpc", this.RemoteCall);
                //or to get ability to answer to remote partner in async way
                //sm = new tiesky.com.SharmIpc("MyNewSharmIpc", this.AsyncRemoteCallHandler);
            }
        }
コード例 #7
0
        private void button1_Click(object sender, EventArgs e)
        {
            //Initializing SharmIpc with then name

            if (sm != null)
            {
                sm.Dispose();
                sm = null;
            }

            if (sm == null)
            {
                sm = new tiesky.com.SharmIpc("MyNewSharmIpc", this.RemoteCall);
                //or to get ability to answer to remote partner in async way
                //sm = new tiesky.com.SharmIpc("MyNewSharmIpc", this.AsyncRemoteCallHandler);
            }
        }
コード例 #8
0
        private void button1_Click(object sender, EventArgs e)
        {
            //Initializing SharmIpc with then name

            if (sm != null)
            {
                sm.Dispose();
                sm = null;
            }

            if (sm == null)
            {
                sm = new tiesky.com.SharmIpc("Global/MyNewSharmIpc", this.RemoteCall, protocolVersion: tiesky.com.SharmIpc.eProtocolVersion.V2);
                //or to get ability to answer to remote partner in async way
                //sm = new tiesky.com.SharmIpc("Global/MyNewSharmIpc", this.AsyncRemoteCallHandler);
            }

            //System.Threading.ThreadPool.SetMinThreads(100, 100);
        }