Table of Contents

Class ServiceBase

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

Main base class for most services and helpers which have Logs. Also has an API to auto-connect the logs of child-services.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public abstract class ServiceBase : IHasLog
Inheritance
object
ServiceBase
Implements
Derived

Constructors

ServiceBase(string, NoParamOrder, object[]?)

Experimental signature v17.02...

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

Parameters

logName string
protect NoParamOrder
connect object[]

Methods

ConnectLogs(object[])

Connect Log of all dependencies listed in services

protected void ConnectLogs(object[] services)

Parameters

services object[]

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