Пример #1
0
        /// <summary>
        /// EventBus
        /// </summary>
        public SimpleCapBus(ILogger <SimpleCapBus> logger, IEndpointNameService endpointNameService, IKeyGeneratorService keyGeneratorService,
                            ICapPublisher capBus, IBusCallbackService callbackService, IBusCallbackSubscriber callbackSubscriber)
        {
            _logger = logger;
            _endpointNameService = endpointNameService;
            _keyGeneratorService = keyGeneratorService;
            _callbackService     = callbackService;
            _callbackSubscriber  = callbackSubscriber;

            CapBus = capBus;
        }
 /// <summary>
 /// Overrided <see cref="ConsumerServiceSelector"/>
 /// </summary>
 public SimpleCAPConsumerServiceSelector(IServiceProvider serviceProvider, IEndpointNameService nameService,
                                         IOptions <CapEventHandlerOptions> capEventHandlerOptions) : base(serviceProvider)
 {
     _nameService            = nameService;
     _capEventHandlerOptions = capEventHandlerOptions.Value;
 }