/// <summary>
        /// Setups the input data pipe.
        /// </summary>
        /// <param name="inputDataPipeName">Name of the input data pipe.</param>
        /// <remarks></remarks>
        private void SetupInputDataPipe(PipeName inputDataPipeName)
        {
            if (null == inputDataPipeName)
            {
                InputDataPipe = null;
                return;
            }
            InputDataPipe = new Pipe(inputDataPipeName);
            InputDataPipe.Open();

            InputDataPipe.Before = WorkerStatistics.PauseNetTime;
            InputDataPipe.After  = WorkerStatistics.ResumeNetTime;
        }
Пример #2
0
 public Pipe(PipeName pipeName)
 {
     concretePipe = ConcretePipeFactory.CreatePipe(pipeName);
 }
        /// <summary>
        /// Setups the input data pipe.
        /// </summary>
        /// <param name="inputDataPipeName">Name of the input data pipe.</param>
        /// <remarks></remarks>
        private void SetupInputDataPipe(PipeName inputDataPipeName)
        {
            if (null == inputDataPipeName)
            {
                InputDataPipe = null;
                return;
            }
            InputDataPipe = new Pipe(inputDataPipeName);
            InputDataPipe.Open();

            InputDataPipe.Before = WorkerStatistics.PauseNetTime;
            InputDataPipe.After = WorkerStatistics.ResumeNetTime;
        }
 internal static IPipe CreatePipe(PipeName pipeName)
 {
     return(new MSMQPipe(pipeName));
 }
Пример #5
0
 public Pipe(PipeName pipeName)
 {
     concretePipe = ConcretePipeFactory.CreatePipe(pipeName);
 }
 internal static IPipe CreatePipe(PipeName pipeName)
 {
     return new MSMQPipe(pipeName);
 }