public AsyncMessageBrokerCore(MessagePipeDiagnosticsInfo diagnotics, MessagePipeOptions options) { this.handlers = new FreeList <IAsyncMessageHandler <TMessage> >(); this.defaultAsyncPublishStrategy = options.DefaultAsyncPublishStrategy; this.handlingSubscribeDisposedPolicy = options.HandlingSubscribeDisposedPolicy; this.diagnotics = diagnotics; }
public MessageBrokerCore(MessagePipeDiagnosticsInfo diagnotics, MessagePipeOptions options) { this.handlerGroup = new Dictionary <TKey, HandlerHolder>(); this.diagnotics = diagnotics; this.handlingSubscribeDisposedPolicy = options.HandlingSubscribeDisposedPolicy; this.gate = new object(); }
public static IDisposable Handle(this HandlingSubscribeDisposedPolicy policy, string name) { if (policy == HandlingSubscribeDisposedPolicy.Throw) { throw new ObjectDisposedException(name); } return(DisposableBag.Empty); }
public MessageBrokerCore(MessagePipeDiagnosticsInfo diagnotics, MessagePipeOptions options) { this.handlers = new FreeList <IMessageHandler <TMessage> >(); this.handlingSubscribeDisposedPolicy = options.HandlingSubscribeDisposedPolicy; this.diagnotics = diagnotics; }