Skip to content

Commit 43943dc

Browse files
committed
rename "Table" field to "TableStorage"
Related to: aliencube#319
1 parent 865bdde commit 43943dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AzureOpenAIProxy.ApiApp/Configurations/StorageAccountSettings.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ public class StorageAccountSettings
1313
/// <summary>
1414
/// Gets or sets the <see cref="TableStorageSettings"/> instance.
1515
/// </summary>
16-
public TableStorageSettings Table { get; set; } = new();
16+
public TableStorageSettings TableStorage { get; set; } = new();
1717
}

src/AzureOpenAIProxy.ApiApp/Extensions/StorageAccountSettingsExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static IServiceCollection AddStorageAccountSettings(this IServiceCollecti
2121
var settings = configuration.GetSection(AzureSettings.Name).GetSection(StorageAccountSettings.Name).Get<StorageAccountSettings>()
2222
?? throw new InvalidOperationException($"{nameof(StorageAccountSettings)} could not be retrieved from the configuration.");
2323

24-
if (string.IsNullOrWhiteSpace(settings.Table.TableName) == true)
24+
if (string.IsNullOrWhiteSpace(settings.TableStorage.TableName) == true)
2525
{
2626
throw new InvalidOperationException($"{StorageAccountSettings.Name}.{TableStorageSettings.Name} is not defined.");
2727
}

0 commit comments

Comments
 (0)