Skip to content

Commit 0510d56

Browse files
committed
add StorageSettings and TableSettings
fix property name "Name" to "TableName" because "Name" is duplicated in TableSettings.cs Related to: aliencube#319
1 parent a2471cb commit 0510d56

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace AzureOpenAIProxy.ApiApp.Configurations;
2+
3+
/// <summary>
4+
/// This represents the settings entity for Storage.
5+
/// </summary>
6+
public class StorageSettings
7+
{
8+
/// <summary>
9+
/// Gets the name of the configuration settings.
10+
/// </summary>
11+
public const string Name = "Storage";
12+
13+
/// <summary>
14+
/// Gets or sets the <see cref="TableSettings"/> instance.
15+
/// </summary>
16+
public TableSettings Table { get; set; } = new();
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace AzureOpenAIProxy.ApiApp.Configurations;
2+
3+
/// <summary>
4+
/// This represents the settings entity for Azure Table Stroage.
5+
/// </summary>
6+
public class TableSettings
7+
{
8+
/// <summary>
9+
/// Gets the name of the configuration settings.
10+
/// </summary>
11+
public const string Name = "Table";
12+
13+
/// <summary>
14+
/// Gets or sets the table name.
15+
/// </summary>
16+
public string? TableName { get; set; }
17+
}

src/AzureOpenAIProxy.ApiApp/appsettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"Stroage": {
3434
"Table": {
35-
"Name": "events"
35+
"TableName": "events"
3636
}
3737
}
3838
},

0 commit comments

Comments
 (0)