public TransactionBroadcastManager(IConfiguration config, ILogger <TransactionBroadcastManager> logger, BlockchainRepository blockchainRepository) { this.config = config; this.logger = logger; this.blockchainRepository = blockchainRepository; subscriptionClient = new SubscriptionClient(config.GetConnectionString("AzureServiceBus"), config["BlockchainNodeSettings:BlockchainTopicName"], config["BlockchainNodeSettings:NodeName"]); }
public NodeQeueueHandler(IConfiguration config, ILogger <NodeQeueueHandler> logger, QueueSender queueSender, BlockchainRepository blockchainRepository) { this.logger = logger ?? throw new ArgumentException(nameof(logger)); this.config = config ?? throw new ArgumentException(nameof(config)); this.queueSender = queueSender; this.blockchainRepository = blockchainRepository; this.logger.LogInformation("Constructed Singelton"); }