Table of Contents

Class ServiceBase<TDependencies>

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

Base class for any service which expects a Dependencies class

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public abstract class ServiceBase<TDependencies> : ServiceBase, IHasLog where TDependencies : DependenciesBase

Type Parameters

TDependencies
Inheritance
object
ServiceBase<TDependencies>
Implements
Derived
Inherited Members

Constructors

ServiceBase(TDependencies, string, NoParamOrder, object[]?)

Constructor for normal case, with services

protected ServiceBase(TDependencies services, string logName, NoParamOrder protect = default, object[]? connect = null)

Parameters

services TDependencies

Dependencies to auto-attach to property Services

logName string

The new objects name in the logs

protect NoParamOrder

see Convention: Named Parameters

connect object[]

Optional array of services to connect the logs to.

Fields

Services

The services which came through the TDependencies services in the constructor.

protected readonly TDependencies Services

Field Value

TDependencies