当前位置: 首页>>代码示例>>C#>>正文


C# ChannelBindingKind类代码示例

本文整理汇总了C#中ChannelBindingKind的典型用法代码示例。如果您正苦于以下问题:C# ChannelBindingKind类的具体用法?C# ChannelBindingKind怎么用?C# ChannelBindingKind使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ChannelBindingKind类属于命名空间,在下文中一共展示了ChannelBindingKind类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetChannelBinding

        public override ChannelBinding GetChannelBinding(ChannelBindingKind kind)
        {
            if (kind != ChannelBindingKind.Endpoint)
                return null;

            return binding;
        }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:7,代码来源:TransportContext.cs

示例2: GetChannelBinding

 public override ChannelBinding GetChannelBinding(ChannelBindingKind kind)
 {
     if (kind != ChannelBindingKind.Endpoint)
     {
         throw new NotSupportedException(SR.GetString("net_listener_invalid_cbt_type", new object[] { kind.ToString() }));
     }
     return this.request.GetChannelBinding();
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:8,代码来源:HttpListenerRequestContext.cs

示例3: GetChannelBinding

 public override ChannelBinding GetChannelBinding(ChannelBindingKind kind)
 {
     if (kind != ChannelBindingKind.Endpoint)
     {
         return null;
     }
     return this.binding;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:8,代码来源:CachedTransportContext.cs

示例4: GetChannelBinding

 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();
 }
开发者ID:dotnet,项目名称:corefx,代码行数:9,代码来源:HttpListenerRequestContext.cs

示例5: GetChannelBinding

        public override ChannelBinding GetChannelBinding(ChannelBindingKind kind)
        {
            // WinHTTP only supports retrieval of ChannelBindingKind.Endpoint for CBT.
            if (kind == ChannelBindingKind.Endpoint)
            {
                return _channelBinding;
            }

            return null;
        }
开发者ID:noahfalk,项目名称:corefx,代码行数:10,代码来源:WinHttpTransportContext.cs

示例6: QueryChannelBinding

        internal static SafeChannelBindingHandle QueryChannelBinding(SafeSslHandle context, ChannelBindingKind bindingType)
        {
            SafeChannelBindingHandle bindingHandle;
            switch (bindingType)
            {
                case ChannelBindingKind.Endpoint:
                    bindingHandle = new SafeChannelBindingHandle(bindingType);
                    QueryEndPointChannelBinding(context, bindingHandle);
                    break;

                case ChannelBindingKind.Unique:
                    bindingHandle = new SafeChannelBindingHandle(bindingType);
                    QueryUniqueChannelBinding(context, bindingHandle);
                    break;

                default:
                    // Keeping parity with windows, we should return null in this case.
                    bindingHandle = null;
                    break;
            }

            return bindingHandle;
        }
开发者ID:kkurni,项目名称:corefx,代码行数:23,代码来源:Interop.OpenSsl.cs

示例7: QueryContextChannelBinding

        public unsafe int QueryContextChannelBinding(SafeDeleteContext phContext, ChannelBindingKind attribute, out SafeFreeContextBufferChannelBinding refHandle)
        {
            refHandle = SafeFreeContextBufferChannelBinding.CreateEmptyHandle();

            // Bindings is on the stack, so there's no need for a fixed block.
            Bindings bindings = new Bindings();
            int errorCode = SafeFreeContextBufferChannelBinding.QueryContextChannelBinding(phContext, (Interop.Secur32.ContextAttribute)attribute, &bindings, refHandle);

            if (errorCode != 0)
            {
                GlobalLog.Leave("QueryContextChannelBinding", "ERROR = " + ErrorDescription(errorCode));
                refHandle = null;
            }

            return errorCode;
        }
开发者ID:rainersigwald,项目名称:corefx,代码行数:16,代码来源:SSPISecureChannelType.cs

示例8: GetChannelBinding

 internal ChannelBinding GetChannelBinding(ChannelBindingKind kind)
 {
     ChannelBinding binding = null;
     if (this.m_SecurityContext != null)
     {
         binding = SSPIWrapper.QueryContextChannelBinding(GlobalSSPI.SSPISecureChannel, this.m_SecurityContext, (ContextAttribute) kind);
     }
     return binding;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:9,代码来源:SecureChannel.cs

示例9: GetChannelBinding

        internal ChannelBinding GetChannelBinding(ChannelBindingKind kind)
        {
            if (NetEventSource.IsEnabled) NetEventSource.Enter(this, kind);

            ChannelBinding result = null;
            if (_securityContext != null)
            {
                result = SslStreamPal.QueryContextChannelBinding(_securityContext, kind);
            }

            if (NetEventSource.IsEnabled) NetEventSource.Exit(this, result);
            return result;
        }
开发者ID:dotnet,项目名称:corefx,代码行数:13,代码来源:SecureChannel.cs

示例10: GetChannelBinding

 internal ChannelBinding GetChannelBinding(ChannelBindingKind kind)
 {
     return null;
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:4,代码来源:FakeSslState.cs

示例11: QueryContextChannelBinding

 public unsafe static SafeFreeContextBufferChannelBinding QueryContextChannelBinding(SafeDeleteContext securityContext, ChannelBindingKind attribute)
 {
     return SSPIWrapper.QueryContextChannelBinding(GlobalSSPI.SSPISecureChannel, securityContext, (Interop.SspiCli.ContextAttribute)attribute);
 }
开发者ID:dpvreony-forks,项目名称:corefx,代码行数:4,代码来源:SslStreamPal.Windows.cs

示例12: QueryContextChannelBinding

        internal static SafeFreeContextBufferChannelBinding QueryContextChannelBinding(SSPIInterface SecModule, SafeDeleteContext securityContext, ChannelBindingKind contextAttribute)
        {
            GlobalLog.Enter("QueryContextChannelBinding", contextAttribute.ToString());

            SafeFreeContextBufferChannelBinding result;
            
            int errorCode = SecModule.QueryContextChannelBinding(securityContext, contextAttribute , out result);

            if (result != null)
            {
                GlobalLog.Leave("QueryContextChannelBinding", Logging.HashString(result));
            }

            return result;
        }
开发者ID:nnyamhon,项目名称:corefx,代码行数:15,代码来源:_SSPIWrapper.cs

示例13: GetChannelBinding

 internal ChannelBinding GetChannelBinding(ChannelBindingKind kind)
 {
     return (Context == null) ? null : Context.GetChannelBinding(kind);
 }
开发者ID:eerhardt,项目名称:corefx,代码行数:4,代码来源:SslState.cs

示例14: QueryContextChannelBinding

 public static SafeFreeContextBufferChannelBinding QueryContextChannelBinding(SafeDeleteContext securityContext, ChannelBindingKind attribute)
 {
     SafeChannelBindingHandle bindingHandle = Interop.OpenSsl.QueryChannelBinding(securityContext.SslContext, attribute);
     var refHandle = bindingHandle == null ? null : new SafeFreeContextBufferChannelBinding(bindingHandle);
     return refHandle;
 }
开发者ID:rajeevkb,项目名称:corefx,代码行数:6,代码来源:SslStreamPal.Unix.cs

示例15: QueryContextChannelBinding

 public int QueryContextChannelBinding(SafeDeleteContext phContext, ChannelBindingKind attribute,
     out SafeFreeContextBufferChannelBinding refHandle)
 {
     throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException);
 }
开发者ID:TAdityaAnirudh,项目名称:corefx,代码行数:5,代码来源:SSPISecureChannelType.cs


注:本文中的ChannelBindingKind类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。