Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Publisher&lt;T&gt;"/> 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;
 }
Example #2
0
 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;
 }