public ServiceBusQueueMessageHandler(IServiceBusQueueMessageListener queueClient, IVstsScheduleHandler <T> scheduleHandler, ServiceBusQueueMessageHandlerSettings settings, ILogger logger)
 {
     this.scheduleHandler = scheduleHandler;
     this.settings        = settings;
     this.queueClient     = queueClient;
     this.clientLogger    = logger;
 }
 public ServiceBusQueueMessageHandler(IServiceBusQueueMessageListener queueClient, IBrokerInstrumentation baseInstrumentation, IVstsScheduleHandler <T> scheduleHandler, ServiceBusQueueMessageHandlerSettings settings)
 {
     this.settings = settings;
     this.settings.LockRefreshDelayMsecs = settings.LockRefreshDelayMsecs == 0 ? 1 : settings.LockRefreshDelayMsecs;
     this.baseInstrumentation            = baseInstrumentation;
     this.scheduleHandler           = scheduleHandler;
     this.queueClient               = queueClient;
     this.CreateTaskClient          = TaskClientFactory.GetTaskClient;
     this.CreateBuildClient         = (uri, authToken) => new BuildClient(uri, new VssBasicCredential(string.Empty, authToken));
     this.CreateReleaseClient       = (uri, authToken) => new ReleaseClient(uri, new VssBasicCredential(string.Empty, authToken));
     this.CreateVstsReportingHelper = (vstsMessage, inst, props) => new VstsReportingHelper(vstsMessage, inst, props);
 }
 public ServiceBusQueueMessageHandler(IServiceBusQueueMessageListener queueClient, IVstsScheduleHandler <T> scheduleHandler, ServiceBusQueueMessageHandlerSettings settings)
     : this(queueClient, scheduleHandler, settings, new NullLogger())
 {
 }