File tree 3 files changed +8
-8
lines changed
src/AzureOpenAIProxy.ApiApp
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ namespace AzureOpenAIProxy.ApiApp.Configurations;
3
3
/// <summary>
4
4
/// This represents the settings entity for Storage.
5
5
/// </summary>
6
- public class StorageSettings
6
+ public class StorageAccountSettings
7
7
{
8
8
/// <summary>
9
9
/// Gets the name of the configuration settings.
10
10
/// </summary>
11
- public const string Name = "Storage " ;
11
+ public const string Name = "StorageAccount " ;
12
12
13
13
/// <summary>
14
14
/// Gets or sets the <see cref="TableSettings"/> instance.
Original file line number Diff line number Diff line change 4
4
namespace AzureOpenAIProxy . ApiApp . Extensions ;
5
5
6
6
/// <summary>
7
- /// This represents the extension entity for the <see cref="StorageSettings "/> class.
7
+ /// This represents the extension entity for the <see cref="StorageAccountSettings "/> class.
8
8
/// </summary>
9
9
public static class StorageSettingsExtensions
10
10
{
11
11
/// <summary>
12
12
/// Gets the Storage configuration settings by reading appsettings.json.
13
13
/// </summary>
14
14
/// <param name="services"><see cref="IServiceCollection"/> instance.</param>
15
- /// <returns>Returns <see cref="StorageSettings "/> instance.</returns>
16
- public static StorageSettings GetStorageSettings ( this IServiceCollection services )
15
+ /// <returns>Returns <see cref="StorageAccountSettings "/> instance.</returns>
16
+ public static StorageAccountSettings GetStorageSettings ( this IServiceCollection services )
17
17
{
18
18
var configuration = services . BuildServiceProvider ( ) . GetService < IConfiguration > ( )
19
19
?? throw new InvalidOperationException ( $ "{ nameof ( IConfiguration ) } service is not registered.") ;
20
20
21
- var settings = configuration . GetSection ( StorageSettings . Name ) . Get < StorageSettings > ( )
22
- ?? throw new InvalidOperationException ( $ "{ nameof ( StorageSettings ) } could not be retrieved from the configuration.") ;
21
+ var settings = configuration . GetSection ( StorageAccountSettings . Name ) . Get < StorageAccountSettings > ( )
22
+ ?? throw new InvalidOperationException ( $ "{ nameof ( StorageAccountSettings ) } could not be retrieved from the configuration.") ;
23
23
24
24
return settings ;
25
25
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public interface IAdminEventRepository
43
43
/// </summary>
44
44
public class AdminEventRepository ( IServiceCollection sc ) : IAdminEventRepository
45
45
{
46
- private readonly StorageSettings _storageSettings = sc . GetStorageSettings ( ) ;
46
+ private readonly StorageAccountSettings _storageSettings = sc . GetStorageSettings ( ) ;
47
47
48
48
/// <inheritdoc />
49
49
public async Task < AdminEventDetails > CreateEvent ( AdminEventDetails eventDetails )
You can’t perform that action at this time.
0 commit comments