Skip to content

Commit 937c325

Browse files
Added missing registration of IAzureBlobStorage interface which had b… (#1628)
# Description The IAzureBlobStorage interface had been moved from the Jobs area into Core as it was reusable. It had not been registered within core, so was causing a failure of the app during the dependency injection process. # Checklist: - [ ] My work is behind a feature toggle (if appropriate) - [ ] If my work is behind a feature toggle, I've added a full suite of tests for both the ON and OFF state - [ ] The ticket number is in the Pull Request title, with format "APPT-XXX: My Title Here" - [ ] I have ran npm tsc / lint (in the future these will be ran automatically) - [ ] My code generates no new .NET warnings (in the future these will be treated as errors) - [ ] If I've added a new Function, it is disabled in all but one of the terraform groups (e.g. http_functions) - [ ] If I've added a new Function, it has both unit and integration tests. Any request body validators have unit tests also - [ ] If I've made UI changes, I've added appropriate Playwright and Jest tests - [ ] If I've added/updated an end-point, I've added the appropriate annotations and tested the Swagger documentation reflects the change
1 parent 5804618 commit 937c325

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/api/Nhs.Appointments.Core/Concurrency/ServiceRegistration.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
using Nhs.Appointments.Core.Concurrency;
21
using Microsoft.Extensions.Azure;
2+
using Nhs.Appointments.Core.Blob;
3+
using Nhs.Appointments.Core.Concurrency;
34

45
namespace Microsoft.Extensions.DependencyInjection;
56

@@ -17,12 +18,14 @@ public static IServiceCollection AddAzureBlobStoreLeasing(this IServiceCollectio
1718
opts.Timeout = TimeSpan.FromSeconds(30);
1819
opts.ContainerName = containerName;
1920
});
20-
21+
2122
services.AddAzureClients(x =>
2223
{
2324
x.AddBlobServiceClient(connectionString);
2425
});
2526

26-
return services.AddSingleton<ISiteLeaseManager, AzureStorageSiteLeaseManager>();
27+
return services
28+
.AddSingleton<IAzureBlobStorage, AzureBlobStorage>()
29+
.AddSingleton<ISiteLeaseManager, AzureStorageSiteLeaseManager>();
2730
}
2831
}

0 commit comments

Comments
 (0)