Skip to content

Commit 995e767

Browse files
committed
Bump OCC.Tenants to 1.4.0
1 parent d87a474 commit 995e767

5 files changed

Lines changed: 11 additions & 16 deletions

File tree

src/OrchardCoreContrib.Tenants/HealthChecks/TenantsHealthCheck.cs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,18 @@
66

77
namespace 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
{

src/OrchardCoreContrib.Tenants/Manifest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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" },

src/OrchardCoreContrib.Tenants/OrchardCoreContrib.Tenants.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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>
@@ -25,6 +26,7 @@
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>

src/OrchardCoreContrib.Tenants/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 |

src/OrchardCoreContrib.Tenants/HealthChecks/Startup.cs renamed to src/OrchardCoreContrib.Tenants/Startup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
using Microsoft.Extensions.Options;
66
using OrchardCore.Modules;
77
using OrchardCoreContrib.HealthChecks;
8+
using OrchardCoreContrib.Tenants.HealthChecks;
89

9-
namespace OrchardCoreContrib.Tenants.HealthChecks;
10+
namespace OrchardCoreContrib.Tenants;
1011

1112
[RequireFeatures("OrchardCoreContrib.HealthChecks")]
1213
public class Startup : StartupBase

0 commit comments

Comments
 (0)