C# Class AsyncDolls.Testing.MessageUnit

Inheritance: IBus
显示文件 Open project: danielmarbach/async-dolls Class Usage Examples

Public Methods

Method Description
HandOver ( AsyncDolls.TransportMessage message ) : System.Threading.Tasks.Task
MessageUnit ( AsyncDolls.EndpointConfiguration configuration ) : System
Publish ( object message, AsyncDolls.PublishOptions options = null ) : System.Threading.Tasks.Task
Send ( object message, AsyncDolls.SendOptions options = null ) : System.Threading.Tasks.Task
SendLocal ( object message ) : System.Threading.Tasks.Task
SetOutgoing ( Task>.Func outgoing ) : void
StartAsync ( ) : System.Threading.Tasks.Task
StopAsync ( ) : System.Threading.Tasks.Task
Use ( AsyncDolls.Pipeline.HandlerRegistry registry ) : MessageUnit
Use ( IMessageRouter router ) : MessageUnit

Protected Methods

Method Description
CreateBus ( IReceiveMessages receiver, IOutgoingPipelineFactory outgoingPipelineFactory, IIncomingPipelineFactory incomingPipelineFactory ) : AsyncDolls.Bus
CreateIncomingPipelineFactory ( ) : IIncomingPipelineFactory
CreateOutgoingPipelineFactory ( ) : IOutgoingPipelineFactory

Method Details

CreateBus() protected method

protected CreateBus ( IReceiveMessages receiver, IOutgoingPipelineFactory outgoingPipelineFactory, IIncomingPipelineFactory incomingPipelineFactory ) : AsyncDolls.Bus
receiver IReceiveMessages
outgoingPipelineFactory IOutgoingPipelineFactory
incomingPipelineFactory IIncomingPipelineFactory
return AsyncDolls.Bus

CreateIncomingPipelineFactory() protected method

protected CreateIncomingPipelineFactory ( ) : IIncomingPipelineFactory
return IIncomingPipelineFactory

CreateOutgoingPipelineFactory() protected method

protected CreateOutgoingPipelineFactory ( ) : IOutgoingPipelineFactory
return IOutgoingPipelineFactory

HandOver() public method

public HandOver ( AsyncDolls.TransportMessage message ) : System.Threading.Tasks.Task
message AsyncDolls.TransportMessage
return System.Threading.Tasks.Task

MessageUnit() public method

public MessageUnit ( AsyncDolls.EndpointConfiguration configuration ) : System
configuration AsyncDolls.EndpointConfiguration
return System

Publish() public method

public Publish ( object message, AsyncDolls.PublishOptions options = null ) : System.Threading.Tasks.Task
message object
options AsyncDolls.PublishOptions
return System.Threading.Tasks.Task

Send() public method

public Send ( object message, AsyncDolls.SendOptions options = null ) : System.Threading.Tasks.Task
message object
options AsyncDolls.SendOptions
return System.Threading.Tasks.Task

SendLocal() public method

public SendLocal ( object message ) : System.Threading.Tasks.Task
message object
return System.Threading.Tasks.Task

SetOutgoing() public method

public SetOutgoing ( Task>.Func outgoing ) : void
outgoing Task>.Func
return void

StartAsync() public method

public StartAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

StopAsync() public method

public StopAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Use() public method

public Use ( AsyncDolls.Pipeline.HandlerRegistry registry ) : MessageUnit
registry AsyncDolls.Pipeline.HandlerRegistry
return MessageUnit

Use() public method

public Use ( IMessageRouter router ) : MessageUnit
router IMessageRouter
return MessageUnit