C# Class Ninject.Extensions.MessageBroker.StandardMessageBroker

The stock implementation of a message broker.
Inheritance: Ninject.Components.NinjectComponent, IMessageBroker, IHaveKernel
Afficher le fichier Open project: ninject/Ninject.Extensions.MessageBroker

Méthodes publiques

Méthode 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

Méthode Description
ThrowIfChannelDoesNotExist ( string name ) : void

Method Details

CloseChannel() public méthode

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

DisableChannel() public méthode

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

Dispose() public méthode

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

EnableChannel() public méthode

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.
Résultat void

GetChannel() public méthode

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.
Résultat IMessageChannel

StandardMessageBroker() public méthode

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