internal XDAmazonListener(IIdentityProvider identityProvider, ISerializer serializer, ITopicRepository topicRepository, ISubscriberRepository subscriberRepository, ISubscriptionService subscriptionService) { Validate.That(identityProvider).IsNotNull(); Validate.That(serializer).IsNotNull(); Validate.That(topicRepository).IsNotNull(); Validate.That(subscriberRepository).IsNotNull(); Validate.That(subscriptionService).IsNotNull(); useLongLiveQueues = (identityProvider.Scope == IdentityScope.Machine); uniqueInstanceId = identityProvider.GetUniqueId(); this.serializer = serializer; this.topicRepository = topicRepository; this.subscriberRepository = subscriberRepository; this.subscriptionService = subscriptionService; }
internal XDAmazonListener(IIdentityProvider identityProvider, ISerializer serializer, ITopicRepository topicRepository, ISubscriberRepository subscriberRepository, ISubscriptionService subscriptionService) { identityProvider.Requires("identityProvider").IsNotNull(); serializer.Requires("serializer").IsNotNull(); topicRepository.Requires("topicRepository").IsNotNull(); subscriberRepository.Requires("subscriberRepository").IsNotNull(); subscriptionService.Requires("subscriptionService").IsNotNull(); useLongLiveQueues = identityProvider.Scope == IdentityScope.Machine; uniqueInstanceId = identityProvider.GetUniqueId(); this.serializer = serializer; this.topicRepository = topicRepository; this.subscriberRepository = subscriberRepository; this.subscriptionService = subscriptionService; }