예제 #1
0
            protected override void OnBuildingSubscriptions(ISubscriptionsBuilder subscriptionsBuilder)
            {
                subscriptionsBuilder
                .ServiceHandler <SubscribingService, TestEventBase>()
                .HasGlobalSubscription();

                subscriptionsBuilder
                .ServiceHandler <SubscribingService, TestEvent>()
                .HasGlobalSubscription();
            }
예제 #2
0
            private void AddScopedServiceHandlerSubscription(ISubscriptionsBuilder subscriptionsBuilder)
            {
                var serviceConfigurator = subscriptionsBuilder
                                          .ServiceHandler <ScopedSubscribingService, TestEvent>();

                serviceConfigurator.HasScopedSubscription();
            }
예제 #3
0
            private void AddGlobalServiceHandlerSubscription(ISubscriptionsBuilder subscriptionsBuilder)
            {
                var serviceConfigurator = subscriptionsBuilder
                                          .ServiceHandler <SingletonSubscribingService, TestEvent>();

                serviceConfigurator.HasGlobalSubscription();
            }