Click or drag to resize

ServiceAutoRegister Method

Automatically register all the dependency types declared CouchbaseDependencyAttributes. To auto register classes, they must implement an interface and must have a default constructor.

Namespace:  Couchbase.Lite.DI
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0713
Syntax
C#
public static void AutoRegister(
	Assembly assembly
)

Parameters

assembly
Type: System.ReflectionAssembly
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if assembly is null
InvalidOperationExceptionThrown if an invalid type is found inside of the assembly (i.e. one that does not implement any interfaces and/or does not have a parameterless constructor)
See Also