2018-07-20 16:36:46 +02:00
|
|
|
|
using Umbraco.Core.Composing;
|
2016-08-13 12:58:58 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.HealthCheck
|
|
|
|
|
|
{
|
|
|
|
|
|
public class HealthCheckCollectionBuilder : LazyCollectionBuilderBase<HealthCheckCollectionBuilder, HealthCheckCollection, HealthCheck>
|
|
|
|
|
|
{
|
2018-07-20 16:36:46 +02:00
|
|
|
|
public HealthCheckCollectionBuilder(IContainer container)
|
2016-08-13 12:58:58 +02:00
|
|
|
|
: base(container)
|
2016-09-01 19:06:08 +02:00
|
|
|
|
{ }
|
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
|
2018-07-20 16:36:46 +02:00
|
|
|
|
protected override Lifetime CollectionLifetime => Lifetime.Transient; // transient!
|
2016-08-13 12:58:58 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|