Adding
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
using LCU.Library.Internal.DispatcherModels.Enums;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LCU.Api.Internal.Dispatcher.Configurations;
|
||||
|
||||
public class ApiConfiguration
|
||||
{
|
||||
public string AppName { get; set; }
|
||||
public string SeqUrl { get; set; }
|
||||
public string SeqApiKey { get; set; }
|
||||
public string[] CorsAllowedOrigins { get; set; }
|
||||
public string SchedulersCronSchedule { get; set; }
|
||||
public string BatchErroredJobsCronSchedule { get; set; }
|
||||
public int ProcessingLimitInMinutes { get; set; }
|
||||
public int NumberOfWorkItemExecutions { get; set; }
|
||||
public int NumberOfExecutionMessages { get; set; }
|
||||
public string BatchErroredJobsTemplate { get; set; }
|
||||
public string ErrorRowTemplate { get; set; }
|
||||
public string BatchErroredJobsSubject { get; set; }
|
||||
public string DefaultErrorRecipient { get; set; }
|
||||
public string CleanUpJobsCronSchedule { get; set; }
|
||||
public int CleanUpJobsDaysToDelete { get; set; }
|
||||
public int DefaultDelayMilliseconds { get; set; }
|
||||
public FeatureFlags FeatureFlags { get; set; }
|
||||
public List<JobStatus> JobStatusesToMonitorByTimeLimit { get; set; }
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
namespace LCU.Api.Internal.Dispatcher.Configurations;
|
||||
|
||||
public class ConnectionsConfiguration
|
||||
{
|
||||
public Sql Sql { get; set; }
|
||||
}
|
||||
|
||||
public class Sql
|
||||
{
|
||||
public string DispatcherDb { get; set; }
|
||||
public SQLOptions SQLOptions { get; set; }
|
||||
}
|
||||
|
||||
public class SQLOptions
|
||||
{
|
||||
public int MaxRetryCount { get; set; }
|
||||
public TimeSpan MaxRetryDelay { get; set; }
|
||||
public ICollection<int> ErrorNumbersToAdd { get; set; }
|
||||
public bool EnableDetailedErrors { get; set; }
|
||||
public int CommandTimeout { get; set; }
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
namespace LCU.Api.Internal.Dispatcher.Configurations;
|
||||
|
||||
public class FeatureFlags
|
||||
{
|
||||
public bool RunCompletionConsumer { get; set; }
|
||||
public bool RunExecutionConsumer { get; set; }
|
||||
public bool RunJobSchedulerHostedService { get; set; }
|
||||
public bool RunBatchErroredJobsHostedService { get; set; }
|
||||
public bool RunCleanUpJobsHostedService { get; set; }
|
||||
public bool RunDetermineOperationConsumer { get; set; }
|
||||
public bool RunJobFailureConsumer { get; set; }
|
||||
public bool RunSendErroredJobAlertConsumer { get; set; }
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
using LCU.Library.Internal.LcuMassTransitModels;
|
||||
namespace LCU.Api.Internal.Dispatcher.Configurations;
|
||||
|
||||
public class ReceiveEndpointConfigurations
|
||||
{
|
||||
public ReceiveEndpointConfiguration ExecutionReceiveEndpoint { get; set; }
|
||||
public ReceiveEndpointConfiguration CompletionReceiveEndpoint { get; set; }
|
||||
public ReceiveEndpointConfiguration DetermineOperationReceiveEndpoint { get; set; }
|
||||
public ReceiveEndpointConfiguration JobFailureReceiveEndpoint { get; set; }
|
||||
public ReceiveEndpointConfiguration SendErroredJobAlertReceiveEndpoint { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user