This commit is contained in:
MeysamMoghaddam
2025-10-20 15:20:29 +03:30
parent ee17929da0
commit b30202b7bd
9 changed files with 298 additions and 138 deletions

View File

@@ -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; }
}