Table of Contents

Method AddPrimeClock

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

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.

public static IServiceCollection AddPrimeClock(this IServiceCollection services)

Parameters

services IServiceCollection

The IServiceCollection to add the service to.

Returns

IServiceCollection

The IServiceCollection for chaining further registrations.

Exceptions

ArgumentNullException

services is null.