File tree Expand file tree Collapse file tree
Netcorext.Auth.API/InjectionConfigs
Netcorext.Auth.Authentication/InjectionConfigs
Netcorext.Auth.Authorization/InjectionConfigs
Netcorext.Auth.Gateway/InjectionConfigs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77using Netcorext . Auth . API . Services . Role ;
88using Netcorext . Auth . API . Services . User ;
99using Netcorext . Auth . API . Settings ;
10+ using Netcorext . EntityFramework . UserIdentityPattern . AspNetCore ;
1011using Netcorext . Extensions . AspNetCore . Middlewares ;
1112using Netcorext . Logging . AspNetCoreLogger ;
1213
@@ -65,6 +66,8 @@ public AppConfig(WebApplication app)
6566 registerConfig . RouteServiceUrl = config . Services [ "Netcorext.Auth.Gateway" ] . Url ;
6667 } ) ;
6768
69+ app . Lifetime . ApplicationStarted . Register ( app . WarmupDbContext ) ;
70+
6871 app . Run ( ) ;
6972 }
7073}
Original file line number Diff line number Diff line change 33using Netcorext . Auth . Authentication . Services . Permission ;
44using Netcorext . Auth . Authentication . Services . Token ;
55using Netcorext . Auth . Authentication . Settings ;
6+ using Netcorext . EntityFramework . UserIdentityPattern . AspNetCore ;
67using Netcorext . Extensions . AspNetCore . Middlewares ;
78using Netcorext . Logging . AspNetCoreLogger ;
89
@@ -50,6 +51,8 @@ public AppConfig(WebApplication app)
5051 app . MapGrpcService < TokenValidationServiceFacade > ( ) ;
5152 app . MapReverseProxy ( ) ;
5253
54+ app . Lifetime . ApplicationStarted . Register ( app . WarmupDbContext ) ;
55+
5356 app . Run ( ) ;
5457 }
5558}
Original file line number Diff line number Diff line change 22using Microsoft . Extensions . Options ;
33using Netcorext . Auth . Authorization . Services . Authorization ;
44using Netcorext . Auth . Authorization . Settings ;
5+ using Netcorext . EntityFramework . UserIdentityPattern . AspNetCore ;
56using Netcorext . Extensions . AspNetCore . Middlewares ;
67using Netcorext . Logging . AspNetCoreLogger ;
78
@@ -56,6 +57,8 @@ public AppConfig(WebApplication app)
5657 registerConfig . RouteServiceUrl = config . Services [ "Netcorext.Auth.Gateway" ] . Url ;
5758 } ) ;
5859
60+ app . Lifetime . ApplicationStarted . Register ( app . WarmupDbContext ) ;
61+
5962 app . Run ( ) ;
6063 }
6164}
Original file line number Diff line number Diff line change 11using Microsoft . Extensions . Options ;
22using Netcorext . Auth . Gateway . Services . Route ;
33using Netcorext . Auth . Gateway . Settings ;
4+ using Netcorext . EntityFramework . UserIdentityPattern . AspNetCore ;
45using Netcorext . Extensions . AspNetCore . Middlewares ;
56using Netcorext . Logging . AspNetCoreLogger ;
67
@@ -47,6 +48,8 @@ public AppConfig(WebApplication app)
4748
4849 app . MapReverseProxy ( ) ;
4950
51+ app . Lifetime . ApplicationStarted . Register ( app . WarmupDbContext ) ;
52+
5053 app . Run ( ) ;
5154 }
5255}
You can’t perform that action at this time.
0 commit comments