• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IServerChannelSink类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: SinkStackEntry

		// Constructor.
		public SinkStackEntry(IServerChannelSink sink, Object state,
							  SinkStackEntry below)
				{
					this.sink = sink;
					this.state = state;
					this.below = below;
				}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:8,代码来源:ServerChannelSinkStack.cs


示例2: SoapServerFormatterSink

		public SoapServerFormatterSink (SoapServerFormatterSink.Protocol protocol,
						IServerChannelSink nextSink,
						IChannelReceiver receiver)
		{
			this.next_sink = nextSink;
			_receiver = receiver;
		}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:7,代码来源:SoapServerFormatterSink.cs


示例3: BidirTcpServerTransportSink

 public BidirTcpServerTransportSink(IServerChannelSink nextSink, int port, String IPAddress)
 {
     _port = port;
     _IPAddress = IPAddress;
     _nextSink = nextSink;
     // StartListening();
 }
开发者ID:pacificIT,项目名称:smuxi,代码行数:7,代码来源:ServerTransportSink.cs


示例4: BinaryServerFormatterSink

		public BinaryServerFormatterSink (BinaryServerFormatterSink.Protocol protocol,
						  IServerChannelSink nextSink,
						  IChannelReceiver receiver)
		{
			this.protocol = protocol;
			this.next_sink = nextSink;
			this.receiver = receiver;
		}
开发者ID:nlhepler,项目名称:mono,代码行数:8,代码来源:BinaryServerFormatterSink.cs


示例5: CounterServerChannelSink

        /// <summary>Erstellt eine neue Instanz von CounterServerChannelSink.</summary>
        /// <param name="nextSink">Nächste Kanalsenke in der Senkenkette</param>
        public CounterServerChannelSink(IServerChannelSink nextSink)
        {
            //Lock objekt erstellen
            _lockObject = new object();

            // Nächste Kanalsenke übernehmen
            _next = nextSink;
        }
开发者ID:yallie,项目名称:zyan,代码行数:10,代码来源:CounterServerChannelSink.cs


示例6: HathiServerChannelSink

 public HathiServerChannelSink(IServerChannelSinkProvider Provider, IChannelReceiver channel)
 {
     IServerChannelSink nextServer = (IServerChannelSink)new BinaryServerFormatterSink(
                                                                         BinaryServerFormatterSink.Protocol.Other, this.NextChannelSink, channel);
     if (channel != null) m_channel = channel;
     if (Provider != null) m_Provider = Provider as HathiServerSinkProvider;
     m_NextIServerChannelSink = new HathiServerChannelSink(Provider, channel, nextServer);
 }
开发者ID:elnomade,项目名称:hathi,代码行数:8,代码来源:HathiServerChannelSink.cs


示例7: ServerTransportSink

		public ServerTransportSink(IServerChannelSink nextSink)
		{
			// parameters validation
			if (nextSink == null)
				throw new ArgumentNullException("nextSink");

			_nextSink = nextSink;
		}
开发者ID:Orvid,项目名称:NAntUniversalTasks,代码行数:8,代码来源:ServerTransportSink.cs


示例8: IpFixServerChannelSink

        public IpFixServerChannelSink(IServerChannelSink nextSink, IEventLink eventLink)
        {
            if (nextSink == null) 
                throw new ArgumentNullException("nextSink");

            _nextSink = nextSink;
            _eventLink = eventLink;
        }
开发者ID:Dennis-Petrov,项目名称:Cash,代码行数:8,代码来源:IpFixServerChannelSink.cs


示例9: CompressionServerChannelSink

 /// <summary>
 /// Constructor with properties.
 /// </summary>
 /// <param name="nextSink">Next sink.</param>
 /// <param name="compressionThreshold">Compression threshold. If 0, compression is disabled globally.</param>
 public CompressionServerChannelSink(
     IServerChannelSink nextSink,
     int compressionThreshold)
 {
     // Set the next sink.
     _next = nextSink;
     // Set the compression threshold.
     _compressionThreshold = compressionThreshold;
 }
开发者ID:yallie,项目名称:zyan,代码行数:14,代码来源:CompressionServerChannelSink.cs


示例10: SoapServerFormatterSink

 public SoapServerFormatterSink(Protocol protocol, IServerChannelSink nextSink, IChannelReceiver receiver)
 {
     if (receiver == null)
     {
         throw new ArgumentNullException("receiver");
     }
     this._nextSink = nextSink;
     this._protocol = protocol;
     this._receiver = receiver;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:10,代码来源:SoapServerFormatterSink.cs


示例11: ServerFormatterSink

        public ServerFormatterSink(IWireFormatter formatter, IServerChannelSink nextSink)
        {
            // parameters validation
            if (formatter == null)
                throw new ArgumentNullException("formatter");
            if (nextSink == null)
                throw new ArgumentNullException("nextSink");

            _formatter = formatter;
            _nextSink = nextSink;
        }
开发者ID:vadimskipin,项目名称:DVRemoting,代码行数:11,代码来源:ServerFormatterSink.cs


示例12: CompressionServerSink

		public CompressionServerSink(
			IServerChannelSink nextChannelSink_in,
			bool mustDo_in
		) {
#if DEBUG
			Console.WriteLine("initiating compression sink");
#endif

			this.mustdo_ = mustDo_in;
			this.nextchannelsink_ = nextChannelSink_in;
		} 
开发者ID:katshann,项目名称:ogen,代码行数:11,代码来源:CompressionServerSink.cs


示例13: SecureServerChannelSink

        public SecureServerChannelSink(IServerChannelSink nextSink, string algorithm, double connectionAgeLimit, double sweeperFrequency, bool requireSecurity)
        {
            _algorithm = algorithm;
            _connectionAgeLimit = connectionAgeLimit;
            _sweepFrequency = sweeperFrequency;
            _requireSecurity = requireSecurity;

            _next = nextSink;

            _connections = new Hashtable(103, 0.5F);
            StartConnectionSweeper();
        }
开发者ID:hostitherepc,项目名称:Fork-1,代码行数:12,代码来源:SecureServerChannelSink.cs


示例14: Pop

		public object Pop (IServerChannelSink sink)
		{
			// Pops until the sink is found

			while (_sinkStack != null)
			{
				ChanelSinkStackEntry stackEntry = _sinkStack;
				_sinkStack = _sinkStack.Next;
				if (stackEntry.Sink == sink) return stackEntry.State;
			}
			throw new RemotingException ("The current sink stack is empty, or the specified sink was never pushed onto the current stack");
		}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:12,代码来源:ServerChannelSinkStack.cs


示例15: EncryptionServerSink

		public EncryptionServerSink(
			IServerChannelSink nextChannelSink_in,
			string keysPath_in, 
			bool mustDo_in
		) {
#if DEBUG
			Console.WriteLine("initiating encryption sink");
#endif

			keyspath_ = keysPath_in;
			mustdo_ = mustDo_in;
			nextchannelsink_ = nextChannelSink_in;
		} 
开发者ID:BackupTheBerlios,项目名称:ogen-svn,代码行数:13,代码来源:EncryptionServerSink.cs


示例16: CryptoServerChannelSink

        /// <summary>
        /// Initializes a new instance of the <see cref="CryptoServerChannelSink"/> class.
        /// </summary>
        /// <param name="nextSink">The next sink.</param>
        /// <param name="algorithm">Symmetric encryption algorithm.</param>
        /// <param name="oaep">if set to <c>true</c>, OAEP padding is enabled.</param>
        /// <param name="connectionAgeLimit">Connection age limit.</param>
        /// <param name="sweeperFrequency">Connection sweeper frequency.</param>
        /// <param name="requireCryptoClient">if set to <c>true</c>, crypto client sink is required.</param>
        /// <param name="securityExemptionList">Security exemption list.</param>
        public CryptoServerChannelSink(IServerChannelSink nextSink, string algorithm, bool oaep, double connectionAgeLimit, double sweeperFrequency, bool requireCryptoClient, IPAddress[] securityExemptionList)
        {
            _algorithm = algorithm;
            _oaep = oaep;
            _connectionAgeLimit = connectionAgeLimit;
            _sweepFrequency = sweeperFrequency;
            _requireCryptoClient = requireCryptoClient;
            _securityExemptionList = securityExemptionList;
            _next = nextSink;
            _connections = new Hashtable(103, 0.5F);

            StartConnectionSweeper();
        }
开发者ID:yallie,项目名称:zyan,代码行数:23,代码来源:CryptoServerChannelSink.cs


示例17: Pop

 public object Pop(IServerChannelSink sink)
 {
     if (this._stack == null)
     {
         throw new RemotingException(Environment.GetResourceString("Remoting_Channel_PopOnEmptySinkStack"));
     }
 Label_0018:
     if (this._stack.Sink != sink)
     {
         this._stack = this._stack.PrevStack;
         if (this._stack != null)
         {
             goto Label_0018;
         }
     }
     if (this._stack.Sink == null)
     {
         throw new RemotingException(Environment.GetResourceString("Remoting_Channel_PopFromSinkStackWithoutPush"));
     }
     object state = this._stack.State;
     this._stack = this._stack.PrevStack;
     return state;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:23,代码来源:ServerChannelSinkStack.cs


示例18: StoreAndDispatch

        [System.Security.SecurityCritical]  // auto-generated 
        public void StoreAndDispatch(IServerChannelSink sink, Object state)
        {
            Store(sink, state);
            FlipRememberedStack(); 

            CrossContextChannel.DoAsyncDispatch(_asyncMsg, null); 
        } // Store 
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:8,代码来源:ChannelSinkStacks.cs


示例19: BinaryServerFormatterSink

        public BinaryServerFormatterSink(Protocol protocol, IServerChannelSink nextSink,
                                         IChannelReceiver receiver)
        {
            if (receiver == null)
                throw new ArgumentNullException("receiver");

            _nextSink = nextSink;
            _protocol = protocol;
            _receiver = receiver;            
        } // BinaryServerFormatterSinkProvider
开发者ID:salim18,项目名称:DemoProject2,代码行数:10,代码来源:BinaryFormatterSinks.cs


示例20: Pop

        public Object Pop(IServerChannelSink sink)
        { 
            if (_stack == null)
            {
                throw new RemotingException(
                    Environment.GetResourceString("Remoting_Channel_PopOnEmptySinkStack")); 
            }
 
            // find this sink on the stack 
            do
            { 
                if (_stack.Sink == sink)
                    break;

                _stack = _stack.PrevStack; 
            } while (_stack != null);
 
            if (_stack.Sink == null) 
            {
                throw new RemotingException( 
                    Environment.GetResourceString("Remoting_Channel_PopFromSinkStackWithoutPush"));
            }

            Object state = _stack.State; 
            _stack = _stack.PrevStack;
 
            return state; 
        } // Pop
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:28,代码来源:ChannelSinkStacks.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IServerChannelSinkProvider类代码示例发布时间:2022-05-24
下一篇:
C# IServerApplicationPaths类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap