Table of Contents

Class DependenciesBase

Namespace
ToSic.Sys.Services
Assembly
ToSic.Sys.Core.dll

Base class for all Dependency helpers on services.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public abstract class DependenciesBase
Inheritance
object
DependenciesBase
Derived

Remarks

These are helper objects to get dependencies for a class. It should be used when the owning-class is expected to be inherited. This is important for inheriting classes to keep a stable constructor.

Can collect all objects which need the log and init that.

Constructors

DependenciesBase(NoParamOrder, object[]?)

protected DependenciesBase(NoParamOrder protect = default, object[]? connect = null)

Parameters

protect NoParamOrder
connect object[]

Methods

ConnectLogs(object[])

Add objects to various queues to be auto-initialized when ConnectServices<TMyServices>(TMyServices, ILog) is called later on

protected void ConnectLogs(object[] services)

Parameters

services object[]

One or more services which could implement ToSic.Sys.DI.ILazyInitLog or IHasLog