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); } }
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); }