C# Class NServiceBus.Testing.TestableMessageSession

A testable IMessageSession implementation.
Inheritance: TestablePipelineContext, IMessageSession
Show file Open project: Particular/NServiceBus

Public Methods

Method Description
Subscribe ( Type eventType, SubscribeOptions options ) : System.Threading.Tasks.Task

Subscribes to receive published messages of the specified type. This method is only necessary if you turned off auto-subscribe.

Unsubscribe ( Type eventType, UnsubscribeOptions options ) : System.Threading.Tasks.Task

Unsubscribes to receive published messages of the specified type.

Method Details

Subscribe() public method

Subscribes to receive published messages of the specified type. This method is only necessary if you turned off auto-subscribe.
public Subscribe ( Type eventType, SubscribeOptions options ) : System.Threading.Tasks.Task
eventType System.Type The type of event to subscribe to.
options SubscribeOptions Options for the subscribe.
return System.Threading.Tasks.Task

Unsubscribe() public method

Unsubscribes to receive published messages of the specified type.
public Unsubscribe ( Type eventType, UnsubscribeOptions options ) : System.Threading.Tasks.Task
eventType System.Type The type of event to unsubscribe to.
options UnsubscribeOptions Options for the subscribe.
return System.Threading.Tasks.Task