Table of Contents

Class ServiceBase<TServices>

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<TServices> : ServiceBase, IHasLog where TServices : IDependencies

Type Parameters

TServices

Services/dependencies

Inheritance
object
ServiceBase<TServices>
Implements
Derived
Inherited Members

Constructors

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

Constructor for normal case, with services

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

Parameters

services TServices

Dependencies to auto-attach to property Services

logName string

The new objects name in the logs

npo 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 TServices Services

Field Value

TServices