Umbraco.Community.RuntimeValidators
1.0.0.8
dotnet add package Umbraco.Community.RuntimeValidators --version 1.0.0.8
NuGet\Install-Package Umbraco.Community.RuntimeValidators -Version 1.0.0.8
<PackageReference Include="Umbraco.Community.RuntimeValidators" Version="1.0.0.8" />
paket add Umbraco.Community.RuntimeValidators --version 1.0.0.8
#r "nuget: Umbraco.Community.RuntimeValidators, 1.0.0.8"
// Install Umbraco.Community.RuntimeValidators as a Cake Addin #addin nuget:?package=Umbraco.Community.RuntimeValidators&version=1.0.0.8 // Install Umbraco.Community.RuntimeValidators as a Cake Tool #tool nuget:?package=Umbraco.Community.RuntimeValidators&version=1.0.0.8
Umbraco.Community.RuntimeValidators
A community project of Umbraco runtime validators to add to your projects to ensure your site has the correct configuration.
Validators
Azure Load Balancing
AzureLoadBalancing.ExamineValidator
- This checks to see if Examine is using the correct LuceneDirectoryFactoryAzureLoadBalancing.HostSyncValidator
- This checks to see if the MainDom is configured correctlyAzureLoadBalancing.TempFilesValidator
- This checks to see if the LocalTempStorageLocation is set to EnvironmentTemp
How to use
Install the NuGet package Umbraco.Community.RuntimeValidators
into your Umbraco project.
You can add the validators to the collection of RuntimeValidators found in the Umbraco Application builder. You can do this directly in your startup.cs file or in a composer as shown in the various ways below.
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Community.RuntimeValidators.Validators.AzureLoadBalancing;
using Umbraco.Extensions;
namespace YourProject.Website
public class RuntimeValidatorsComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.RuntimeModeValidators()
.Add<TempFilesValidator>()
.Add<HostSyncValidator>()
.Add<ExamineValidator>();
}
}
Alternatively you can use the extension method AddAzureLoadBalancingValidators()
to add all the validators in the Azure Load Balancing namespace.
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Community.RuntimeValidators;
using Umbraco.Extensions;
namespace YourProject.Website;
public class RuntimeValidatorsComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.RuntimeModeValidators()
.AddAzureLoadBalancingValidators();
}
}
Or if you want fine grain control you can add each validator individually.
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Extensions;
namespace YourProject.Website;
public class RuntimeValidatorsComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.RuntimeModeValidators()
.Add<Umbraco.Community.RuntimeValidators.Validators.AzureLoadBalancing.ExamineValidator>()
.Add<Umbraco.Community.RuntimeValidators.Validators.AzureLoadBalancing.HostSyncValidator>();
}
}
Don't Forget
You will need to set the Runtime Mode in your appsettings.json
file to Production
for the current validators to run alongside Umbraco's own.
For further information and documentation about Umbraco runtime modes, please refer to their documentation
{
"Umbraco": {
"CMS": {
"Runtime": {
"Mode" : "Production"
}
}
}
}
Requirements
This class library is built against Umbraco 10.1.0 where the concept of RuntimeValidators was introduced, so your Umbraco build will need to use a minimum version of 10.1.0 or newer.
Attributions
<a href="https://www.flaticon.com/free-icons/validation" title="validation icons">Validation icons created by Dewi Sari - Flaticon</a>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Umbraco.Cms.Core (>= 10.1.0)
- Umbraco.Cms.Infrastructure (>= 10.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0.8 | 1,022 | 3/5/2024 |