public SqlOrchestrationService(SqlOrchestrationServiceSettings?settings)
 {
     this.settings      = ValidateSettings(settings) ?? throw new ArgumentNullException(nameof(settings));
     this.traceHelper   = new LogHelper(this.settings.LoggerFactory.CreateLogger("DurableTask.SqlServer"));
     this.dbManager     = new SqlDbManager(this.settings, this.traceHelper);
     this.lockedByValue = $"{this.settings.AppName}|{Process.GetCurrentProcess().Id}";
 }
 public SqlOrchestrationService(SqlOrchestrationServiceSettings?settings)
 {
     this.settings      = ValidateSettings(settings) ?? throw new ArgumentNullException(nameof(settings));
     this.traceHelper   = new LogHelper(this.settings.LoggerFactory.CreateLogger("DurableTask.SqlServer"));
     this.dbManager     = new SqlDbManager(this.settings, this.traceHelper);
     this.lockedByValue = $"{this.settings.AppName},{Process.GetCurrentProcess().Id}";
     this.userId        = new SqlConnectionStringBuilder(this.settings.TaskHubConnectionString).UserID ?? string.Empty;
 }