コード例 #1
0
        public NamedPipesWriteQueue()
        {
            _clientStream = new NamedPipeClientStream(Constants.ThisMachineServerName, Constants.PipeName, PipeDirection.Out);
            _timer = new Timer(WriteToQueue);
            _initTime = DateTime.Now;

            var inProcQueue = new InProcQueue();
            _readQueue = inProcQueue;
            _writeQueue = inProcQueue;

            Trace("Starting up.");

            ResetTimer();
        }
コード例 #2
0
        public NamedPipesWriteQueue()
        {
            _clientStream = new NamedPipeClientStream(Constants.ThisMachineServerName, Constants.PipeName, PipeDirection.Out);
            _timer        = new Timer(WriteToQueue);
            _initTime     = DateTime.Now;

            var inProcQueue = new InProcQueue();

            _readQueue  = inProcQueue;
            _writeQueue = inProcQueue;

            Trace("Starting up.");

            ResetTimer();
        }