Files
Umbraco-CMS/src/Umbraco.Web/HealthCheck/HeathCheckCollectionBuilder.cs
2018-11-26 16:54:32 +01:00

14 lines
553 B
C#

using Umbraco.Core.Composing;
namespace Umbraco.Web.HealthCheck
{
public class HealthCheckCollectionBuilder : LazyCollectionBuilderBase<HealthCheckCollectionBuilder, HealthCheckCollection, HealthCheck>
{
protected override HealthCheckCollectionBuilder This => this;
// note: in v7 they were per-request, not sure why?
// the collection is injected into the controller & there's only 1 controller per request anyways
protected override Lifetime CollectionLifetime => Lifetime.Transient; // transient!
}
}