Пример #1
0
 public RoutingInboxHandler(
     IWalletRecordService recordService,
     IWalletService walletService,
     IRoutingStore routingStore,
     ILogger <RoutingInboxHandler> logger)
 {
     this.recordService = recordService;
     this.walletService = walletService;
     this.routingStore  = routingStore;
     this.logger        = logger;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MediatorForwardHandler"/> class.
 /// </summary>
 /// <param name="recordService"></param>
 /// <param name="walletService"></param>
 /// <param name="routingStore"></param>
 /// <param name="eventAggregator"></param>
 public MediatorForwardHandler(
     IWalletRecordService recordService,
     IWalletService walletService,
     IRoutingStore routingStore,
     IEventAggregator eventAggregator)
 {
     this.recordService   = recordService;
     this.walletService   = walletService;
     this.routingStore    = routingStore;
     this.eventAggregator = eventAggregator;
 }
Пример #3
0
 public RoutingInboxHandler(
     IWalletRecordService recordService,
     IWalletService walletService,
     IRoutingStore routingStore,
     IOptions <AgentOptions> options,
     ILogger <RoutingInboxHandler> logger)
 {
     this.recordService = recordService;
     this.walletService = walletService;
     this.routingStore  = routingStore;
     this.options       = options.Value;
     this.logger        = logger;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="MediatorForwardHandler"/> class.
        /// </summary>
        /// <param name="recordService"></param>
        /// <param name="walletService"></param>
        /// <param name="routingStore"></param>
        /// <param name="eventAggregator"></param>
        public MediatorForwardHandler(
            IWalletRecordService recordService,
            IWalletService walletService,
            IRoutingStore routingStore,
            IEventAggregator eventAggregator)
        {
            this.recordService   = recordService;
            this.walletService   = walletService;
            this.routingStore    = routingStore;
            this.eventAggregator = eventAggregator;

            if (Environment.GetEnvironmentVariable("Inbox_Notification_Endpoint") != null && Environment.GetEnvironmentVariable("Inbox_Notification_Endpoint").Length > 0)
            {
                notifyEdgeClient          = true;
                inboxNotificationEndpoint = Environment.GetEnvironmentVariable("Inbox_Notification_Endpoint");
                apiKey = Environment.GetEnvironmentVariable("Inbox_Notification_ApiKey");
            }
        }