Skip to content

Commit

Permalink
Committing changes related delegation job
Browse files Browse the repository at this point in the history
  • Loading branch information
SARANYA authored and SARANYA committed Sep 12, 2023
1 parent ceda27a commit 9387e3d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions api/CcsSso.Core.DelegationJobScheduler/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,16 @@ private static void ConfigureContexts(IServiceCollection services, DelegationApp
private static DelegationAppSettings GetConfigurationDetails(HostBuilderContext hostContext)
{
string dbConnection;
string conclaveLoginUrl;
DelegationJobSettings scheduleJob;
string conclaveLoginUrl;
DelegationJobSettings scheduleJob;
DelegationExpiryNotificationJobSettings expiryNotificationJob;
EmailSettings emailSettings;
WrapperApiSettings wrapperApiSettings;
NotificationApiSettings notificationApiSettings;

var config = hostContext.Configuration;
dbConnection = config["DbConnection"];
bool.TryParse(config["IsApiGatewayEnabled"], out bool isApiGatewayEnabled);
dbConnection = config["DbConnection"];
conclaveLoginUrl = config["ConclaveLoginUrl"];
scheduleJob = config.GetSection("DelegationJobSettings").Get<DelegationJobSettings>();
expiryNotificationJob = config.GetSection("DelegationExpiryNotificationJobSettings").Get<DelegationExpiryNotificationJobSettings>();
Expand All @@ -108,7 +109,8 @@ private static DelegationAppSettings GetConfigurationDetails(HostBuilderContext

var appSettings = new DelegationAppSettings()
{
DbConnection = dbConnection,
IsApiGatewayEnabled = isApiGatewayEnabled,
DbConnection = dbConnection,
ConclaveLoginUrl=conclaveLoginUrl,
DelegationJobSettings = new DelegationJobSettings
{
Expand Down

0 comments on commit 9387e3d

Please sign in to comment.