private void TryClose(IMemoryChannel channel) { try { channel.Write(new ConnectionDispose()); } catch (Exception ex) { LogEnvironment.LogDebugEvent(ex.Message, LogSeverity.Warning); } finally { channel.ObjectReceived -= ClientComm; channel.ConnectionStatusChanged -= ClientConnectionChanged; channel.Dispose(); } }
public void ReConnectChannel(IMemoryChannel comm, IMemoryChannel initialChannel) { initialChannel.Write(new ConnectionRequest { ProposedGuid = comm.Name, Ttl = comm.Ttl, User = JsonHelper.ToJsonStrongTyped(provider.CurrentIdentity) }); }
public void CommitServiceOperation(ServiceOperationResponseMessage ret) { channel.Write(ret); }