예제 #1
0
        /// <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();
        }
예제 #2
0
        /// <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();
        }
예제 #3
0
        /// <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);
        }
예제 #4
0
        /// <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);
        }