System.Net.HttpListenerRequest.GetChannelBinding C# (CSharp) Method

GetChannelBinding() private method

private GetChannelBinding ( ) : ChannelBinding
return ChannelBinding
        internal ChannelBinding GetChannelBinding()
        {
            return HttpListenerContext.Listener.GetChannelBindingFromTls(_connectionId);
        }

Usage Example

 public override ChannelBinding GetChannelBinding(ChannelBindingKind kind)
 {
     if (kind != ChannelBindingKind.Endpoint)
     {
         throw new NotSupportedException(SR.Format(
                                             SR.net_listener_invalid_cbt_type, kind.ToString()));
     }
     return(_request.GetChannelBinding());
 }