Class ServiceBase<TServices>
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
TServicesServices/dependencies
- Inheritance
-
objectServiceBase<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
servicesTServicesDependencies to auto-attach to property
ServiceslogNamestringThe new objects name in the logs
npoNoParamOrderconnectobject[]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