/// <summary> /// Initializes a new instance of the <see cref="Publisher<T>"/> class. /// </summary> /// <param name="queueManager">The queue manager.</param> /// <param name="logger">The logger.</param> public Publisher(IQueueAdapter queueManager, IBusLogger logger, ILogController logController, IOptions <ConnectionStrings> connectionStrings, IOptions <AzureServiceBusConfiguration> serviceBusConfiguration) : base(logController, connectionStrings, serviceBusConfiguration) { this.logger = logger; this._queueManager = queueManager; queueManager.Initialize(); this.logController = logController; }
public Publisher(ILogController logController, IOptions <ConnectionStrings> connectionStrings, IOptions <AzureServiceBusConfiguration> serviceBusConfiguration) : base(logController, connectionStrings, serviceBusConfiguration) { _queueManager = this.BuildDefaultQueueAdapter(); logger = this.BuildLogger(); _queueManager.Initialize(); this.logController = logController; }