@@ -46,13 +46,25 @@ void ConfigureIdentityServerHosts()
4646 projectRegistry . Add ( "is-host" , hostMain ) ;
4747 }
4848
49+ if ( HostIsEnabled ( nameof ( Projects . Host_Main10 ) ) )
50+ {
51+ var hostMain = builder
52+ . AddProject < Projects . Host_Main10 > ( "is-host" )
53+ . WithHttpHealthCheck ( path : "/.well-known/openid-configuration" ) ;
54+
55+ projectRegistry . Add ( "is-host" , hostMain ) ;
56+ }
57+
58+
4959 // These hosts require a database
5060 var dbHosts = new List < string >
5161 {
5262 nameof ( Projects . Host_AspNetIdentity8 ) ,
5363 nameof ( Projects . Host_AspNetIdentity9 ) ,
64+ nameof ( Projects . Host_AspNetIdentity10 ) ,
5465 nameof ( Projects . Host_EntityFramework8 ) ,
55- nameof ( Projects . Host_EntityFramework9 )
66+ nameof ( Projects . Host_EntityFramework9 ) ,
67+ nameof ( Projects . Host_EntityFramework10 )
5668 } ;
5769
5870 if ( dbHosts . Any ( HostIsEnabled ) )
@@ -100,6 +112,23 @@ void ConfigureIdentityServerHosts()
100112 projectRegistry . Add ( "is-host" , hostAspNetIdentity ) ;
101113 }
102114
115+ if ( HostIsEnabled ( nameof ( Projects . Host_AspNetIdentity10 ) ) )
116+ {
117+ var hostAspNetIdentity = builder . AddProject < Projects . Host_AspNetIdentity10 > ( name : "is-host" )
118+ . WithHttpHealthCheck ( path : "/.well-known/openid-configuration" )
119+ . WithReference ( identityServerDb , connectionName : "DefaultConnection" ) ;
120+
121+ if ( appConfig . RunDatabaseMigrations )
122+ {
123+ var aspnetMigration = builder . AddProject < Projects . AspNetIdentityDb > ( name : "aspnetidentitydb-migrations" )
124+ . WithReference ( identityServerDb , connectionName : "DefaultConnection" )
125+ . WaitFor ( identityServerDb ) ;
126+ hostAspNetIdentity . WaitForCompletion ( aspnetMigration ) ;
127+ }
128+
129+ projectRegistry . Add ( "is-host" , hostAspNetIdentity ) ;
130+ }
131+
103132 if ( HostIsEnabled ( nameof ( Projects . Host_EntityFramework8 ) ) )
104133 {
105134 var hostEntityFramework = builder . AddProject < Projects . Host_EntityFramework8 > ( name : "is-host" )
@@ -133,6 +162,23 @@ void ConfigureIdentityServerHosts()
133162
134163 projectRegistry . Add ( "is-host" , hostEntityFramework ) ;
135164 }
165+
166+ if ( HostIsEnabled ( nameof ( Projects . Host_EntityFramework10 ) ) )
167+ {
168+ var hostEntityFramework = builder . AddProject < Projects . Host_EntityFramework10 > ( name : "is-host" )
169+ . WithHttpHealthCheck ( path : "/.well-known/openid-configuration" )
170+ . WithReference ( identityServerDb , connectionName : "DefaultConnection" ) ;
171+
172+ if ( appConfig . RunDatabaseMigrations )
173+ {
174+ var idSrvMigration = builder . AddProject < Projects . IdentityServerDb > ( name : "identityserverdb-migrations" )
175+ . WithReference ( identityServerDb , connectionName : "DefaultConnection" )
176+ . WaitFor ( identityServerDb ) ;
177+ hostEntityFramework . WaitForCompletion ( idSrvMigration ) ;
178+ }
179+
180+ projectRegistry . Add ( "is-host" , hostEntityFramework ) ;
181+ }
136182 }
137183
138184 bool HostIsEnabled ( string name ) =>
0 commit comments