/// <summary> /// Initializes a new instance of the <see cref="EventBroker"/> class. /// </summary> /// <param name="factory">The factory.</param> public EventBroker(IFactory factory) { this.factory = factory; this.factory.Initialize(this); this.globalMatchersHost = this.factory.CreateGlobalMatchersHost(); this.eventTopicHost = this.factory.CreateEventTopicHost(this.globalMatchersHost); this.eventInspector = this.factory.CreateEventInspector(); }
/// <summary> /// Initializes a new instance of the <see cref="EventBroker"/> class. /// </summary> /// <param name="factory">The factory.</param> public EventBroker(IFactory factory) { Ensure.ArgumentNotNull(factory, "factory"); this.factory = factory; this.factory.Initialize(this); this.globalMatchersHost = this.factory.CreateGlobalMatchersHost(); this.eventTopicHost = this.factory.CreateEventTopicHost(this.globalMatchersHost); this.eventInspector = this.factory.CreateEventInspector(); }
/// <summary> /// Initializes a new instance of the <see cref="EventBroker"/> class. /// </summary> /// <param name="factory">The factory.</param> public EventBroker(IFactory factory) { Guard.AgainstNullArgument(nameof(factory), factory); this.factory = factory; this.factory.Initialize(this); this.globalMatchersHost = this.factory.CreateGlobalMatchersHost(); this.eventTopicHost = this.factory.CreateEventTopicHost(this.globalMatchersHost); this.eventInspector = this.factory.CreateEventInspector(); this.registrar = this.factory.CreateRegistrar(this.eventTopicHost, this.eventInspector, this); }
/// <summary> /// Initializes a new instance of the <see cref="EventBroker"/> class. /// </summary> /// <param name="factory">The factory.</param> public EventBroker(IFactory factory) { Ensure.ArgumentNotNull(factory, "factory"); this.factory = factory; this.factory.Initialize(this); this.globalMatchersHost = this.factory.CreateGlobalMatchersHost(); this.eventTopicHost = this.factory.CreateEventTopicHost(this.globalMatchersHost); this.eventInspector = this.factory.CreateEventInspector(); this.registrar = this.factory.CreateRegistrar(this.eventTopicHost, this.eventInspector, this); }