File tree Expand file tree Collapse file tree
src/OrchardCoreContrib.Tenants Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77namespace OrchardCoreContrib . Tenants . HealthChecks ;
88
9- public class TenantsHealthCheck : IHealthCheck
9+ public class TenantsHealthCheck ( IShellHost shellHost , IServiceProvider serviceProvider ) : IHealthCheck
1010{
1111 internal const string Name = "Tenants Health Check" ;
1212
13- private readonly IShellHost _shellHost ;
14- private readonly IServiceProvider _serviceProvider ;
15-
16- public TenantsHealthCheck ( IShellHost shellHost , IServiceProvider serviceProvider )
17- {
18- _shellHost = shellHost ;
19- _serviceProvider = serviceProvider ;
20- }
21-
2213 public Task < HealthCheckResult > CheckHealthAsync ( HealthCheckContext context , CancellationToken cancellationToken = default )
2314 {
24- var nonRunningTenants = _shellHost . GetAllSettings ( )
15+ var nonRunningTenants = shellHost . GetAllSettings ( )
2516 . Where ( s => ! s . IsDefaultShell ( ) && s . State != TenantState . Running ) ;
2617 if ( nonRunningTenants . Any ( ) )
2718 {
2819 var description = String . Empty ;
29- var localizer = _serviceProvider . GetService < IStringLocalizer < TenantsHealthCheck > > ( ) ;
20+ var localizer = serviceProvider . GetService < IStringLocalizer < TenantsHealthCheck > > ( ) ;
3021
3122 if ( nonRunningTenants . Count ( ) == 1 )
3223 {
Original file line number Diff line number Diff line change 55 Name = "Multitenancy" ,
66 Author = ManifestConstants . Author ,
77 Website = ManifestConstants . Website ,
8- Version = "1.2.1 " ,
8+ Version = "1.4.0 " ,
99 Description = "Provides a way to manage tenants from the admin." ,
1010 Category = "Infrastructure" ,
1111 Dependencies = new [ ] { "OrchardCore.Tenants" } ,
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <VersionPrefix >1.3 .0</VersionPrefix >
4+ <VersionPrefix >1.4 .0</VersionPrefix >
55 <Authors >The Orchard Core Contrib Team</Authors >
66 <Company />
77 <Description >Provides features to manage tenants from the Admin UI.</Description >
8+ <PackageReadmeFile >README.md</PackageReadmeFile >
89 <PackageLicenseExpression >BSD-3-Clause</PackageLicenseExpression >
910 <PackageProjectUrl >https://github.com/OrchardCoreContrib/OrchardCoreContrib.Modules/tree/main/src/OrchardCoreContrib.Tenants/README.md</PackageProjectUrl >
1011 <RepositoryUrl >https://github.com/OrchardCoreContrib/OrchardCoreContrib.Modules</RepositoryUrl >
2526
2627 <ItemGroup >
2728 <None Include =" ../../images/icon.png" Pack =" true" PackagePath =" icon.png" />
29+ <None Include =" README.md" Pack =" true" PackagePath =" \" />
2830 </ItemGroup >
2931
3032 <ItemGroup >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This module provides features to manage tenants from the Admin UI.
44
55## Version
66
7- 1.2.1
7+ 1.4.0
88
99## Category
1010
@@ -28,6 +28,7 @@ Infrastructure
2828
2929| Name | Version |
3030| -------------------------------------------------------------------------------------------------| ---------|
31+ | [ ` OrchardCoreContrib.Tenants ` ] ( https://www.nuget.org/packages/OrchardCoreContrib.Tenants/1.4.0 ) | 1.4.0 |
3132| [ ` OrchardCoreContrib.Tenants ` ] ( https://www.nuget.org/packages/OrchardCoreContrib.Tenants/1.3.0 ) | 1.3.0 |
3233| [ ` OrchardCoreContrib.Tenants ` ] ( https://www.nuget.org/packages/OrchardCoreContrib.Tenants/1.2.1 ) | 1.2.1 |
3334| [ ` OrchardCoreContrib.Tenants ` ] ( https://www.nuget.org/packages/OrchardCoreContrib.Tenants/1.2.0 ) | 1.2.0 |
Original file line number Diff line number Diff line change 55using Microsoft . Extensions . Options ;
66using OrchardCore . Modules ;
77using OrchardCoreContrib . HealthChecks ;
8+ using OrchardCoreContrib . Tenants . HealthChecks ;
89
9- namespace OrchardCoreContrib . Tenants . HealthChecks ;
10+ namespace OrchardCoreContrib . Tenants ;
1011
1112[ RequireFeatures ( "OrchardCoreContrib.HealthChecks" ) ]
1213public class Startup : StartupBase
You can’t perform that action at this time.
0 commit comments