/// <summary>
        /// Initializes a new instance of the <see cref="DistributedEventBrokerExtensionBase"/> class.
        /// </summary>
        /// <param name="distributedEventBrokerIdentification">The distributed event broker identification.</param>
        /// <param name="eventBrokerBus">The event broker bus.</param>
        /// <param name="factory">The factory.</param>
        protected DistributedEventBrokerExtensionBase(string distributedEventBrokerIdentification, IEventBrokerBus eventBrokerBus, IDistributedFactory factory)
        {
            this.Factory = factory;
            this.Serializer = this.Factory.CreateEventArgsSerializer();
            this.DistributedEventBrokerIdentification = distributedEventBrokerIdentification;
            this.MessageFactory = this.Factory.CreateMessageFactory();
            this.SelectionStrategy = this.Factory.CreateTopicSelectionStrategy();

            this.EventBrokerBus = eventBrokerBus;

            this.topics = new List<string>();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NServiceBusDistributedEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="distributedEventBrokerIdentification">The distributed event broker identification.</param>
 /// <param name="eventBrokerBus">The event broker bus.</param>
 /// <param name="factory">The factory.</param>
 public NServiceBusDistributedEventBrokerExtension(string distributedEventBrokerIdentification, IEventBrokerBus eventBrokerBus, IDistributedFactory factory) :
     base(distributedEventBrokerIdentification, eventBrokerBus, factory)
 {
 }
 public TestableDistributedEventBrokerExtensionBase(string distributedEventBrokerIdentification, IEventBrokerBus eventBrokerBus, IDistributedFactory factory) :
     base(distributedEventBrokerIdentification, eventBrokerBus, factory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MassTransitDistributedEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="distributedEventBrokerIdentification">The distributed event broker identification.</param>
 /// <param name="eventBrokerBus">The event broker bus.</param>
 /// <param name="factory">The factory.</param>
 public MassTransitDistributedEventBrokerExtension(string distributedEventBrokerIdentification, IEventBrokerBus eventBrokerBus, IDistributedFactory factory) :
     base(distributedEventBrokerIdentification, eventBrokerBus, factory)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NServiceBusDistributedEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="distributedEventBrokerIdentification">The distributed event broker identification.</param>
 /// <param name="serviceBus">The service bus.</param>
 /// <param name="factory">The factory.</param>
 public NServiceBusDistributedEventBrokerExtension(string distributedEventBrokerIdentification, IBus serviceBus, IDistributedFactory factory) :
     base(distributedEventBrokerIdentification, new NServiceBusEventBrokerBus(serviceBus), factory)
 {
 }
Exemplo n.º 6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DistributedEventBrokerExtensionBase"/> class.
        /// </summary>
        /// <param name="distributedEventBrokerIdentification">The distributed event broker identification.</param>
        /// <param name="eventBrokerBus">The event broker bus.</param>
        /// <param name="factory">The factory.</param>
        protected DistributedEventBrokerExtensionBase(string distributedEventBrokerIdentification, IEventBrokerBus eventBrokerBus, IDistributedFactory factory)
        {
            this.Factory    = factory;
            this.Serializer = this.Factory.CreateEventArgsSerializer();
            this.DistributedEventBrokerIdentification = distributedEventBrokerIdentification;
            this.MessageFactory    = this.Factory.CreateMessageFactory();
            this.SelectionStrategy = this.Factory.CreateTopicSelectionStrategy();

            this.EventBrokerBus = eventBrokerBus;

            this.topics = new List <string>();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="MassTransitDistributedEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="distributedEventBrokerIdentification">The distributed event broker identification.</param>
 /// <param name="serviceBus">The service bus.</param>
 /// <param name="factory">The factory.</param>
 public MassTransitDistributedEventBrokerExtension(string distributedEventBrokerIdentification, IServiceBus serviceBus, IDistributedFactory factory) :
     base(distributedEventBrokerIdentification, new MassTransitEventBrokerBus(serviceBus), factory)
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RhinoEsbDistributedEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="distributedEventBrokerIdentification">The distributed event broker identification.</param>
 /// <param name="serviceBus">The service bus.</param>
 /// <param name="factory">The factory.</param>
 public RhinoEsbDistributedEventBrokerExtension(string distributedEventBrokerIdentification, IServiceBus serviceBus, IDistributedFactory factory) :
     base(distributedEventBrokerIdentification, new RhinoEsbEventBrokerBus(serviceBus), factory)
 {
 }
Exemplo n.º 9
0
 public TestableDistributedEventBrokerExtensionBase(string distributedEventBrokerIdentification, IEventBrokerBus eventBrokerBus, IDistributedFactory factory, IEventRegistrar registerer) :
     base(distributedEventBrokerIdentification, eventBrokerBus, factory)
 {
     this.registerer = registerer;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MassTransitDistributedEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="distributedEventBrokerIdentification">The distributed event broker identification.</param>
 /// <param name="eventBrokerBus">The event broker bus.</param>
 /// <param name="factory">The factory.</param>
 public MassTransitDistributedEventBrokerExtension(string distributedEventBrokerIdentification, IEventBrokerBus eventBrokerBus, IDistributedFactory factory) :
     base(distributedEventBrokerIdentification, eventBrokerBus, factory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MassTransitDistributedEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="distributedEventBrokerIdentification">The distributed event broker identification.</param>
 /// <param name="serviceBus">The service bus.</param>
 /// <param name="factory">The factory.</param>
 public MassTransitDistributedEventBrokerExtension(string distributedEventBrokerIdentification, IServiceBus serviceBus, IDistributedFactory factory) :
     base(distributedEventBrokerIdentification, new MassTransitEventBrokerBus(serviceBus), factory)
 {
 }
 public TestableDistributedEventBrokerExtensionBase(string distributedEventBrokerIdentification, IEventBrokerBus eventBrokerBus, IDistributedFactory factory) :
     base(distributedEventBrokerIdentification, eventBrokerBus, factory)
 {
 }