Ejemplo n.º 1
0
        private void Process(StepInstance stepInstance)
        {
            const string method = "Process";

            if (EventSource.IsEnabled(Event.MethodEnter))
            {
                EventSource.Raise(Event.MethodEnter, method);
            }

            // Process the next step.

            Interlocked.Increment(ref _outstandingRequests);
            _stepRunner.BeginProcessRequest(stepInstance, ProcessCallback, stepInstance.ProfileInstance);

            if (EventSource.IsEnabled(Event.MethodExit))
            {
                EventSource.Raise(Event.MethodExit, method);
            }
        }
Ejemplo n.º 2
0
 private void ProcessMessage(Message message)
 {
     _sink.BeginProcessRequest(message.BodyStream, ChannelCallback, null);
 }