Пример #1
0
 public LockableClientChannel(IClientChannel innerChannel, LockableChannel channelWithSharedLock = null)
     : base(innerChannel, channelWithSharedLock)
 {
     InnerChannel                   = innerChannel;
     InnerChannel.RequestSent      += InnerChannel_RequestSent;
     InnerChannel.ResponseReceived += InnerChannel_ResponseReceived;
 }
Пример #2
0
 public LockableServerChannel(IServerChannel innerChannel, LockableChannel channelWithSharedLock = null)
     : base(innerChannel, channelWithSharedLock)
 {
     InnerChannel = innerChannel;
     InnerChannel.RequestReceived += InnerChannel_RequestReceived;
     InnerChannel.ResponseSent    += InnerChannel_ResponseSent;
 }
Пример #3
0
 public LockableChannel(IChannel innerChannel, LockableChannel channelWithSharedLock = null)
 {
     if (channelWithSharedLock != null)
     {
         EventsLock = channelWithSharedLock.EventsLock;
     }
     InnerChannel = innerChannel;
     InnerChannel.ChannelReady  += InnerChannel_ChannelReady;
     InnerChannel.ChannelClosed += InnerChannel_ChannelClosed;
     InnerChannel.ErrorOccured  += InnerChannel_ErrorOccured;
 }