Skip to content

Commit ad91218

Browse files
committed
add Argumentexception to AdmingEventRepository
Related to: aliencube#319
1 parent 2699d1c commit ad91218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AzureOpenAIProxy.ApiApp/Repositories/AdminEventRepository.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public interface IAdminEventRepository
4545
/// </summary>
4646
public class AdminEventRepository(TableServiceClient tableServiceClient, StorageAccountSettings storageAccountSettings) : IAdminEventRepository
4747
{
48-
private readonly TableServiceClient _tableServiceClient = tableServiceClient;
49-
private readonly StorageAccountSettings _storageAccountSettings = storageAccountSettings;
48+
private readonly TableServiceClient _tableServiceClient = tableServiceClient ?? throw new ArgumentException(nameof(tableServiceClient));
49+
private readonly StorageAccountSettings _storageAccountSettings = storageAccountSettings ?? throw new ArgumentException(nameof(storageAccountSettings));
5050

5151
/// <inheritdoc />
5252
public async Task<AdminEventDetails> CreateEvent(AdminEventDetails eventDetails)

0 commit comments

Comments
 (0)