Service Class |
Namespace: Couchbase.Lite.DI
public static class Service
The Service type exposes the following members.
| Name | Description | |
|---|---|---|
| AutoRegister |
Automatically register all the dependency types declared
CouchbaseDependencyAttributes. To auto register classes,
they must implement an interface and must have a default constructor.
| |
| GetInstanceT |
Gets the implementation for the given service, or null
if no implementation is registered
| |
| RegisterTService(TService) |
Registers an instantiated object as a singleton implementation for a service
| |
| RegisterTService(FuncTService, Boolean) |
Registers a lazy implementation for the given service
| |
| RegisterTService, TImplementation(Boolean) |
Registers an implementation for the given service
|