コード例 #1
0
		public PooledDispatchChannel(PooledDispatchConnector connector, IMessagingChannel channel, int token)
		{
			if (connector == null)
				throw new ArgumentNullException("connector");

			if (channel == null)
				throw new ArgumentNullException("channel");

			if (token < 0)
				throw new ArgumentException("The token greater than or equal to zero.", "token");

			this.connector = connector;
			this.channel = channel;
			this.token = token;
		}
コード例 #2
0
        public PooledDispatchChannel(PooledDispatchConnector connector, IMessagingChannel channel, int token)
        {
            if (connector == null)
            {
                throw new ArgumentNullException("connector");
            }

            if (channel == null)
            {
                throw new ArgumentNullException("channel");
            }

            if (token < 0)
            {
                throw new ArgumentException("The token greater than or equal to zero.", "token");
            }

            this.connector = connector;
            this.channel   = channel;
            this.token     = token;
        }