chore: set default options
This commit is contained in:
@@ -2,6 +2,6 @@ namespace SanctionsSearch.Worker.Options;
|
||||
|
||||
class DbOptions
|
||||
{
|
||||
public string DatabaseName { get; set; } = string.Empty;
|
||||
public string DatabaseName { get; set; } = "SanctionsSearch.db";
|
||||
public int RefreshIntervalInHours { get; set; } = 1;
|
||||
}
|
||||
@@ -2,15 +2,15 @@ namespace SanctionsSearch.Worker.Options;
|
||||
|
||||
class OfacFileServiceOptions
|
||||
{
|
||||
public string Url { get; init; } = string.Empty;
|
||||
public string SdnFileName { get; init; } = string.Empty;
|
||||
public string AddressFileName { get; init; } = string.Empty;
|
||||
public string AltNamesFileName { get; init; } = string.Empty;
|
||||
public string CommentsFileName { get; init; } = string.Empty;
|
||||
public string ConPrimaryNameFileName { get; init; } = string.Empty;
|
||||
public string ConAddressesFileName { get; init; } = string.Empty;
|
||||
public string ConAltNamesFileName { get; init; } = string.Empty;
|
||||
public string ConCommentsFileName { get; init; } = string.Empty;
|
||||
public string Url { get; init; } = "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports";
|
||||
public string SdnFileName { get; init; } = "SDN.CSV";
|
||||
public string AddressFileName { get; init; } = "ADD.CSV";
|
||||
public string AltNamesFileName { get; init; } = "ALT.CSV";
|
||||
public string CommentsFileName { get; init; } = "SDN_COMMENTS.CSV";
|
||||
public string ConPrimaryNameFileName { get; init; } = "CONS_PRIM.CSV";
|
||||
public string ConAddressesFileName { get; init; } = "CONS_ADD.CSV";
|
||||
public string ConAltNamesFileName { get; init; } = "CONS_ALT.CSV";
|
||||
public string ConCommentsFileName { get; init; } = "CONS_COMMENTS.CSV";
|
||||
|
||||
public Uri GetSdnFileUri() => new($"{Url}/{SdnFileName}");
|
||||
public Uri GetAddressFileUri() => new($"{Url}/{AddressFileName}");
|
||||
|
||||
Reference in New Issue
Block a user