コード例 #1
0
 protected override void Close()
 {
     DiagnosticUtility.DebugAssert(this.channel != null, "channel has been closed already.");
     if (this.channel != null)
     {
         this.service.ReturnChannel(this);
         this.channel = null;
     }
 }
コード例 #2
0
 public PooledChannelTicket(ChannelManagerService service, ChannelManager.PooledChannel channel, ChannelPoolKey channelPoolKey, Guid workflowId, Guid logicalChannelId)
     : base()
 {
     this.service = service;
     this.channel = channel;
     this.channelPoolKey = channelPoolKey;
     this.workflowId = workflowId;
     this.logicalChannelId = logicalChannelId;
 }