Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 public void ReConnectChannel(IMemoryChannel comm, IMemoryChannel initialChannel)
 {
     initialChannel.Write(new ConnectionRequest {
         ProposedGuid = comm.Name, Ttl = comm.Ttl, User = JsonHelper.ToJsonStrongTyped(provider.CurrentIdentity)
     });
 }
Ejemplo n.º 3
0
 public void CommitServiceOperation(ServiceOperationResponseMessage ret)
 {
     channel.Write(ret);
 }