protected override void OnBuildingSubscriptions(ISubscriptionsBuilder subscriptionsBuilder) { subscriptionsBuilder .ServiceHandler <SubscribingService, TestEventBase>() .HasGlobalSubscription(); subscriptionsBuilder .ServiceHandler <SubscribingService, TestEvent>() .HasGlobalSubscription(); }
private void AddScopedServiceHandlerSubscription(ISubscriptionsBuilder subscriptionsBuilder) { var serviceConfigurator = subscriptionsBuilder .ServiceHandler <ScopedSubscribingService, TestEvent>(); serviceConfigurator.HasScopedSubscription(); }
private void AddGlobalServiceHandlerSubscription(ISubscriptionsBuilder subscriptionsBuilder) { var serviceConfigurator = subscriptionsBuilder .ServiceHandler <SingletonSubscribingService, TestEvent>(); serviceConfigurator.HasGlobalSubscription(); }