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


C# IServerChannelSinkProvider.CreateSink方法代码示例

本文整理汇总了C#中IServerChannelSinkProvider.CreateSink方法的典型用法代码示例。如果您正苦于以下问题:C# IServerChannelSinkProvider.CreateSink方法的具体用法?C# IServerChannelSinkProvider.CreateSink怎么用?C# IServerChannelSinkProvider.CreateSink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IServerChannelSinkProvider的用法示例。


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

示例1: CreateServerChannelSinkChain

        [System.Security.SecurityCritical]  // auto-generated_required
        public static IServerChannelSink CreateServerChannelSinkChain( 
            IServerChannelSinkProvider provider, IChannelReceiver channel)
        {
            if (provider == null)
                return new DispatchChannelSink(); 

            // add dispatch provider to end (first find last provider) 
            IServerChannelSinkProvider lastProvider = provider; 
            while (lastProvider.Next != null)
                lastProvider = lastProvider.Next; 
            lastProvider.Next = new DispatchChannelSinkProvider();

            IServerChannelSink sinkChain = provider.CreateSink(channel);
 
            // remove dispatch provider from end
            lastProvider.Next = null; 
 
            return sinkChain;
        } // CreateServerChannelSinkChain 
开发者ID:wsky,项目名称:System.Runtime.Remoting,代码行数:20,代码来源:ChannelServices.cs

示例2: CreateServerChannelSinkChain

		public static IServerChannelSink CreateServerChannelSinkChain (
			IServerChannelSinkProvider provider, IChannelReceiver channel)
	    {
			IServerChannelSinkProvider tmp = provider;
			while (tmp.Next != null) tmp = tmp.Next;
			tmp.Next = new ServerDispatchSinkProvider ();

			// Every provider has to call CreateSink() of its next provider
			return  provider.CreateSink (channel);
		}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:10,代码来源:ChannelServices.cs

示例3: CreateServerChannelSinkChain

 public static IServerChannelSink CreateServerChannelSinkChain(IServerChannelSinkProvider provider, IChannelReceiver channel)
 {
     if (provider == null)
     {
         return new DispatchChannelSink();
     }
     IServerChannelSinkProvider next = provider;
     while (next.Next != null)
     {
         next = next.Next;
     }
     next.Next = new DispatchChannelSinkProvider();
     IServerChannelSink sink = provider.CreateSink(channel);
     next.Next = null;
     return sink;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:16,代码来源:ChannelServices.cs


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