Click or drag to resize

ServiceRegisterTService Method (TService)

Registers an instantiated object as a singleton implementation for a service

Namespace:  Couchbase.Lite.DI
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0713
Syntax
C#
public static void Register<TService>(
	TService instance
)
where TService : class

Parameters

instance
Type: TService
The singleton instance to use as the implementation

Type Parameters

TService
The service type
See Also