C# Class Ninject.Extensions.MessageBroker.StandardMessageBroker

The stock implementation of a message broker.
Inheritance: Ninject.Components.NinjectComponent, IMessageBroker, IHaveKernel
显示文件 Open project: ninject/Ninject.Extensions.MessageBroker

Public Methods

Method Description
CloseChannel ( string name ) : void

Closes a channel, removing it from the message broker.

DisableChannel ( string name ) : void

Disables a channel, which will block messages from being passed.

Dispose ( bool disposing ) : void

Releases all resources held by the object.

EnableChannel ( string name ) : void

Enables a channel, causing it to pass messages through as they occur.

GetChannel ( string name ) : IMessageChannel

Returns a channel with the specified name, creating it first if necessary.

StandardMessageBroker ( IKernel kernel ) : System

Initializes a new instance of the StandardMessageBroker class.

Private Methods

Method Description
ThrowIfChannelDoesNotExist ( string name ) : void

Method Details

CloseChannel() public method

Closes a channel, removing it from the message broker.
public CloseChannel ( string name ) : void
name string The name of the channel to close.
return void

DisableChannel() public method

Disables a channel, which will block messages from being passed.
public DisableChannel ( string name ) : void
name string The name of the channel to disable.
return void

Dispose() public method

Releases all resources held by the object.
public Dispose ( bool disposing ) : void
disposing bool if managed objects should be disposed, otherwise .
return void

EnableChannel() public method

Enables a channel, causing it to pass messages through as they occur.
public EnableChannel ( string name ) : void
name string The name of the channel to enable.
return void

GetChannel() public method

Returns a channel with the specified name, creating it first if necessary.
public GetChannel ( string name ) : IMessageChannel
name string The name of the channel to create or retrieve.
return IMessageChannel

StandardMessageBroker() public method

Initializes a new instance of the StandardMessageBroker class.
public StandardMessageBroker ( IKernel kernel ) : System
kernel IKernel The kernel.
return System