C# 클래스 NDomain.Bus.MessageBus

Handles all the logic to Send messages to an IOutboundTransport, based on current subscriptions Essentially takes Messages, transforms into TransportMessages, setting the appropriate headers for each subscription and sends them to an IOutboundTransport
상속: IMessageBus
파일 보기 프로젝트 열기: mfelicio/NDomain 1 사용 예제들

공개 메소드들

메소드 설명
MessageBus ( ISubscriptionManager subscriptionManager, IOutboundTransport transport, ILoggerFactory loggerFactory ) : NDomain.Logging
Send ( IEnumerable messages ) : System.Threading.Tasks.Task
Send ( Message message ) : System.Threading.Tasks.Task

비공개 메소드들

메소드 설명
BuildTransportMessage ( Message message, NDomain.Bus.Subscriptions.Subscription subscription ) : TransportMessage
PublishMessages ( IEnumerable messages ) : System.Threading.Tasks.Task

메소드 상세

MessageBus() 공개 메소드

public MessageBus ( ISubscriptionManager subscriptionManager, IOutboundTransport transport, ILoggerFactory loggerFactory ) : NDomain.Logging
subscriptionManager ISubscriptionManager
transport IOutboundTransport
loggerFactory ILoggerFactory
리턴 NDomain.Logging

Send() 공개 메소드

public Send ( IEnumerable messages ) : System.Threading.Tasks.Task
messages IEnumerable
리턴 System.Threading.Tasks.Task

Send() 공개 메소드

public Send ( Message message ) : System.Threading.Tasks.Task
message Message
리턴 System.Threading.Tasks.Task