Click or drag to resize

ServiceRegisterTService, TImplementation Method (Boolean)

Registers an implementation for the given service

Namespace:  Couchbase.Lite.DI
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0713
Syntax
C#
public static void Register<TService, TImplementation>(
	bool transient = false
)
where TService : class
where TImplementation : class, TService

Parameters

transient (Optional)
Type: SystemBoolean
If true each call to GetInstanceT will return a new instance, otherwise use a singleton

Type Parameters

TService
The service type
TImplementation
The implementation type
See Also