Interface IServicesContainer
Interface for a dependency injection container that manages collaboration services.
Namespace: Unity.Cloud.Collaboration.Services.ServicesContainer
Assembly: Unity.Cloud.Collaboration.dll
Syntax
public interface IServicesContainer
Methods
ContainsService(Type)
Checks if container contains service of provided type
Declaration
bool ContainsService(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type of service to search. |
Returns
| Type | Description |
|---|---|
| bool | True if the service was found; otherwise, false. |
CreateInstance<TClass>()
Creates a new instance of the specified class, injecting dependencies.
Declaration
TClass CreateInstance<TClass>() where TClass : class
Returns
| Type | Description |
|---|---|
| TClass | The created instance. |
Type Parameters
| Name | Description |
|---|---|
| TClass | The class type to instantiate. |
StartRegistration()
Begins registration of a service.
Declaration
IServiceInitialRegistration StartRegistration()
Returns
| Type | Description |
|---|---|
| IServiceInitialRegistration | A service registration for further configuration. |
TryResolve(Type, out object)
Attempts to resolve a service of the specified type.
Declaration
bool TryResolve(Type type, out object service)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type of service to resolve. |
| object | service | The resolved service instance if found; otherwise, null. |
Returns
| Type | Description |
|---|---|
| bool | True if the service was resolved; otherwise, false. |