u
This commit is contained in:
@@ -25,6 +25,9 @@ ValidatorOptions.Global.LanguageManager = new CustomFluentValidationLanguageMana
|
||||
var appSettings = builder.Configuration.Get<AppSettings>();
|
||||
UrlUtility.DownloadUrl = appSettings.DownloadUrl;
|
||||
|
||||
builder.Services.Configure<EncryptionSettings>(builder.Configuration.GetSection("EncryptionSettings"));
|
||||
builder.Services.AddSingleton<MobileNumberEncryptor>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
@@ -51,3 +54,8 @@ public class AppSettings
|
||||
{
|
||||
public string DownloadUrl { get; set; }
|
||||
}
|
||||
public class EncryptionSettings
|
||||
{
|
||||
public string Key { get; set; }
|
||||
public string IV { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user