Files
Umbraco-CMS/src/Umbraco.Web/HealthCheck/HeathCheckCollectionBuilder.cs

18 lines
662 B
C#
Raw Normal View History

using Umbraco.Core.Composing;
2016-08-13 12:58:58 +02:00
namespace Umbraco.Web.HealthCheck
{
public class HealthCheckCollectionBuilder : LazyCollectionBuilderBase<HealthCheckCollectionBuilder, HealthCheckCollection, HealthCheck>
{
public HealthCheckCollectionBuilder(IContainer container)
2016-08-13 12:58:58 +02:00
: base(container)
{ }
2016-08-13 12:58:58 +02:00
protected override HealthCheckCollectionBuilder This => this;
2016-09-23 20:18:25 +02:00
// 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!
2016-08-13 12:58:58 +02:00
}
}