protected override void onOpened(Connection connection) { MessageConnection c = connection as MessageConnection; if (c != null) { ManageConnection(c); SandboxConnectionType m = new SandboxConnectionType { Type = ConnectionType.Types.SurgeSandbox, SandboxID = STEM.Sys.IO.Path.GetFileName(System.Environment.CurrentDirectory) }; m.onHandshakeComplete += SandboxConnectionType_onHandshakeComplete; m.PerformHandshake(c); } }
protected override void onOpened(Connection connection) { lock (ConnectionLock) { MessageConnection c = connection as MessageConnection; if (c != null) { ManageConnection(c); } SandboxConnectionType m = new SandboxConnectionType { Type = ConnectionType.Types.SurgeSandbox, SandboxID = STEM.Sys.IO.Path.GetFileName(System.Environment.CurrentDirectory) }; m.PerformHandshake(c); STEM.Sys.Global.ThreadPool.BeginAsync(new System.Threading.ThreadStart(Timeout), TimeSpan.FromSeconds(30)); } }