示例#1
0
		public PipeTransport(Pipe pipe)
		{
			// parameters validation
			if (pipe == null)
				throw new ArgumentNullException("pipe");

			_pipe = pipe;
		}
		public PipeInstancePool(Pipe pipe)
		{
			// parameters validation
			if (pipe == null)
				throw new ArgumentNullException("pipe");

			_pipe = pipe;

			// first pipe instance is the first item in the pool
			StoreInstance(_pipe.Instance);
		}
示例#3
0
		internal Pipe(PipeInstance instance, Pipe parent)
		{
			_instance = instance;
			_parent = parent;
		}