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