Table of Contents

Class WarnUseOfUnknown<T>

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

Object which should be used in the DI of Unknown implementations.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class WarnUseOfUnknown<T>

Type Parameters

T

The type of the unknown implementation.

Inheritance
object
WarnUseOfUnknown<T>

Constructors

WarnUseOfUnknown(ILogStore)

Constructor, which will trigger the warning and add it to the logs.

public WarnUseOfUnknown(ILogStore logStore)

Parameters

logStore ILogStore

The log store to which the warning will be added.

Remarks

This object will remember that it was already triggered once, so it won't repeat the warning for the same type.