Table of Contents

Class PrimeClockServiceCollectionExtensions

Namespace
KZDev.SystemClock.PrimeTime
Assembly
KZDev.SystemClock.PrimeTime.dll

Extension methods for adding PrimeTime clock services to an IServiceCollection.

public static class PrimeClockServiceCollectionExtensions
Inheritance
PrimeClockServiceCollectionExtensions

Methods

AddPrimeClock(IServiceCollection)

Adds the default IPrimeClock implementation (KZDev.SystemClock.PrimeTime.PrimeClock) as a singleton in the service collection, and registers IPrimeTime to resolve the same instance as IPrimeClock.