C# Class NServiceBus.DataBus.InMemory.InMemoryDataBus

Inheritance: IDataBus
显示文件 Open project: Particular/NServiceBus

Public Methods

Method Description
Get ( string key ) : Task

Gets a data item from the bus.

Peek ( string key ) : Entry
Put ( Stream stream, System.TimeSpan timeToBeReceived ) : Task

Adds a data item to the bus and returns the assigned key.

Start ( ) : System.Threading.Tasks.Task

Called when the bus starts up to allow the data bus to active background tasks.

Method Details

Get() public method

Gets a data item from the bus.
public Get ( string key ) : Task
key string The key to look for.
return Task

Peek() public method

public Peek ( string key ) : Entry
key string
return Entry

Put() public method

Adds a data item to the bus and returns the assigned key.
public Put ( Stream stream, System.TimeSpan timeToBeReceived ) : Task
stream Stream A create containing the data to be sent on the databus.
timeToBeReceived System.TimeSpan The time to be received specified on the message type. TimeSpan.MaxValue is the default.
return Task

Start() public method

Called when the bus starts up to allow the data bus to active background tasks.
public Start ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task