public void Execute(OnSendFrame pipelineEvent) { Guard.AgainstNull(pipelineEvent, nameof(pipelineEvent)); var state = pipelineEvent.Pipeline.State; var transportMessageStream = state.GetTransportMessageStream(); Guard.AgainstNull(transportMessageStream, nameof(transportMessageStream)); _netMQRequestServer.SendFrameStream(transportMessageStream); transportMessageStream.Dispose(); }
public void Execute(OnPipelineException pipelineEvent) { Guard.AgainstNull(pipelineEvent, nameof(pipelineEvent)); _log.Error(pipelineEvent.Pipeline.Exception.AllMessages()); using (var stream = _serializer.Serialize(new Response { Exception = pipelineEvent.Pipeline.Exception.AllMessages() })) { _netMqRequestServer.SendFrameStream(stream); } pipelineEvent.Pipeline.MarkExceptionHandled(); }