C# 클래스 Ninject.Extensions.MessageBroker.StandardMessageBroker

The stock implementation of a message broker.
상속: Ninject.Components.NinjectComponent, IMessageBroker, IHaveKernel
파일 보기 프로젝트 열기: ninject/Ninject.Extensions.MessageBroker

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
ThrowIfChannelDoesNotExist ( string name ) : void

메소드 상세

CloseChannel() 공개 메소드

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

DisableChannel() 공개 메소드

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

Dispose() 공개 메소드

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

EnableChannel() 공개 메소드

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.
리턴 void

GetChannel() 공개 메소드

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.
리턴 IMessageChannel

StandardMessageBroker() 공개 메소드

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