public OutgoingPipeline Create() { var pipeline = new OutgoingPipeline(); pipeline.Logical .Register(new CreateTransportMessageStep()); pipeline.Transport .Register(new SerializeMessageStep(this.serializer)) .Register(new DetermineDestinationStep(this.router)) .Register(new DispatchToTransportStep(this.sender, this.publisher)); return(pipeline); }
public OutgoingPipeline Create() { var pipeline = new OutgoingPipeline(); pipeline.Logical .Register(new CreateTransportMessageStep()); pipeline.Transport .Register(new SerializeMessageStep(new NewtonsoftJsonMessageSerializer())) .Register(new DetermineDestinationStep(this.router)) .Register(new DispatchToTransportStep(this.sender, this.publisher)); return pipeline; }