C# 클래스 FluorineFx.Messaging.MessageBroker

파일 보기 프로젝트 열기: jdecuyper/FluorineFx 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultMessageBrokerId string

Private Properties

프로퍼티 타입 설명
AddEndpoint void
AddFactory void
AddService void
GetClient FluorineFx.Messaging.Api.IClient
GetDestination FluorineFx.Messaging.Destination
GetEndpoint IEndpoint
GetEndpoint IEndpoint
GetService IService
GetService IService
GetServiceByDestinationId IService
GetServiceByMessageType IService
RegisterDestination void
RouteMessage IMessage
StartEndpoints void
StartServices void
StopEndpoints void
StopServices void
TraceChannelSettings void

공개 메소드들

메소드 설명
GetDestinationBySource ( string source ) : string

Gets the destination Id for the specified source.

GetDestinationId ( IMessage message ) : string

Gets the destination Id from the specified IMessage instance.

GetDestinationId ( string source ) : string

Gets the destination Id for the specified source.

GetFactory ( string id ) : IFlexFactory

Returns the IFlexFactory with the specified Id.

GetMessageBroker ( string messageBrokerId ) : MessageBroker

Gets the MessageBroker object for the current request.

MessageBroker ( FluorineFx.Messaging.MessageServer messageServer ) : System

Initializes a new instance of the MessageBroker class.

RouteMessage ( IMessage message ) : IMessage

Call this method in order to send a message from your code into the message routing system. The message is routed to a service that is defined to handle messages of this type. Once the service is identified, the destination property of the message is used to find a destination configured for that service. The adapter defined for that destination is used to handle the message.

Start ( ) : void

Start the message broker.

Stop ( ) : void

Stop the message broker.

보호된 메소드들

메소드 설명
RegisterMessageBroker ( ) : void

Registers the message broker.

UnregisterMessageBroker ( ) : void

Unregisters the message broker.

비공개 메소드들

메소드 설명
AddEndpoint ( IEndpoint endpoint ) : void
AddFactory ( string id, IFlexFactory factory ) : void
AddService ( IService service ) : void
GetClient ( string id ) : FluorineFx.Messaging.Api.IClient
GetDestination ( string destinationId ) : FluorineFx.Messaging.Destination
GetEndpoint ( string endpointId ) : IEndpoint
GetEndpoint ( string path, string contextPath, bool secure ) : IEndpoint
GetService ( IMessage message ) : IService
GetService ( string id ) : IService
GetServiceByDestinationId ( string destinationId ) : IService
GetServiceByMessageType ( string messageRef ) : IService
RegisterDestination ( FluorineFx.Messaging.Destination destination, IService service ) : void
RouteMessage ( IMessage message, IEndpoint endpoint ) : IMessage

Call this method in order to send a message from your code into the message routing system. The message is routed to a service that is defined to handle messages of this type. Once the service is identified, the destination property of the message is used to find a destination configured for that service. The adapter defined for that destination is used to handle the message.

StartEndpoints ( ) : void

Start all of the broker's endpoints.

StartServices ( ) : void

Start all of the broker's services.

StopEndpoints ( ) : void

Stop all of the broker's endpoints.

StopServices ( ) : void

Stop all of the broker's services.

TraceChannelSettings ( ) : void

메소드 상세

GetDestinationBySource() 공개 메소드

Gets the destination Id for the specified source.
public GetDestinationBySource ( string source ) : string
source string The destination's source property.
리턴 string

GetDestinationId() 공개 메소드

Gets the destination Id from the specified IMessage instance.
public GetDestinationId ( IMessage message ) : string
message IMessage The message that should be handled by the destination.
리턴 string

GetDestinationId() 공개 메소드

Gets the destination Id for the specified source.
public GetDestinationId ( string source ) : string
source string The source should be handled by the destination.
리턴 string

GetFactory() 공개 메소드

Returns the IFlexFactory with the specified Id.
public GetFactory ( string id ) : IFlexFactory
id string FlexFactory identity.
리턴 IFlexFactory

GetMessageBroker() 공개 정적인 메소드

Gets the MessageBroker object for the current request.
public static GetMessageBroker ( string messageBrokerId ) : MessageBroker
messageBrokerId string Ignored.
리턴 MessageBroker

MessageBroker() 공개 메소드

Initializes a new instance of the MessageBroker class.
public MessageBroker ( FluorineFx.Messaging.MessageServer messageServer ) : System
messageServer FluorineFx.Messaging.MessageServer
리턴 System

RegisterMessageBroker() 보호된 메소드

Registers the message broker.
protected RegisterMessageBroker ( ) : void
리턴 void

RouteMessage() 공개 메소드

Call this method in order to send a message from your code into the message routing system. The message is routed to a service that is defined to handle messages of this type. Once the service is identified, the destination property of the message is used to find a destination configured for that service. The adapter defined for that destination is used to handle the message.
public RouteMessage ( IMessage message ) : IMessage
message IMessage The message to be routed to a service.
리턴 IMessage

Start() 공개 메소드

Start the message broker.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stop the message broker.
public Stop ( ) : void
리턴 void

UnregisterMessageBroker() 보호된 메소드

Unregisters the message broker.
protected UnregisterMessageBroker ( ) : void
리턴 void

프로퍼티 상세

DefaultMessageBrokerId 공개적으로 정적으로 프로퍼티

Default MessageBroker identity.
public static string DefaultMessageBrokerId
리턴 string