Table of Contents

Class ServiceLocator

Namespace
Shift.Common.Timeline.Services
Assembly
Shift.Common.dll

Provides a simple service locator for helpers required by the Timeline library. By design, the Timeline library imposes no dependencies on any other libraries to maximize its testability and reusability.

public class ServiceLocator
Inheritance
ServiceLocator
Inherited Members
Extension Methods

Properties

Instance

public static ServiceLocator Instance { get; }

Property Value

ServiceLocator

Methods

GetService<T>()

public T GetService<T>()

Returns

T

Type Parameters

T

Register<T>(T)

public void Register<T>(T serviceInstance)

Parameters

serviceInstance T

Type Parameters

T