File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
ClaimsSolution.ClaimsProcessor Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 44 <TargetFramework >net8.0</TargetFramework >
55 <Nullable >enable</Nullable >
66 <ImplicitUsings >enable</ImplicitUsings >
7- <UserSecretsId >34e1382a-3084-424c-bf06-478ca4c5f717</UserSecretsId >
87 </PropertyGroup >
98
109 <ItemGroup >
Original file line number Diff line number Diff line change 33using Microsoft . Extensions . DependencyInjection ;
44using Microsoft . Extensions . Hosting ;
55using ClaimsSolution . Common . Extensions ;
6+ using ClaimsSolution . ClaimsProcessor . Middlewares ;
7+ using ClaimsSolution . ClaimsProcessor . Services ;
68
79var builder = FunctionsApplication . CreateBuilder ( args ) ;
810
911builder . ConfigureFunctionsWebApplication ( ) ;
1012
13+ builder . UseMiddleware < ExceptionHandlingMiddleware > ( ) ;
14+
1115// Also here, handle this via Options pattern
1216var tableConnectionString = builder . Configuration [ "AzureWebJobsStorage" ] ! ;
1317
1418builder . Services . AddTableStorageRepository ( tableConnectionString ) ;
1519
20+ builder . Services . AddScoped < IClaimProcessingService , ClaimProcessingService > ( ) ;
21+
1622builder . Services
1723 . AddApplicationInsightsTelemetryWorkerService ( )
1824 . ConfigureFunctionsApplicationInsights ( ) ;
You can’t perform that action at this time.
0 commit comments