Interface IServiceContainer
Defines the interface to a ServiceContainer used throughout SciChart.
Namespace:
Assembly: .dll
Syntax
public interface IServiceContainer
Methods
<T>deregisterService(Class<T> classType)
Deregisters service.
Declaration
public abstract void <T>deregisterService(Class<T> classType)
Parameters
Type | Name | Description |
---|---|---|
Class<T> | classType | The type of service. |
<T>getService(Class<T> classType)
Gets the esrvice instance registered by type
Declaration
public abstract T <T>getService(Class<T> classType)
Parameters
Type | Name | Description |
---|---|---|
Class<T> | classType | The service type to get. |
Returns
Type | Description |
---|---|
T | The service instance. |
<T>hasService(Class<T> classType)
Determines whether this instance has the service of specified type.
Declaration
public abstract boolean <T>hasService(Class<T> classType)
Parameters
Type | Name | Description |
---|---|---|
Class<T> | classType | The type of service. |
Returns
Type | Description |
---|---|
boolean | True if container has specified service type, otherwise returns false. |
<T>registerService(Class<T> classType, T service)
Registers the service.
Declaration
public abstract void <T>registerService(Class<T> classType, T service)
Parameters
Type | Name | Description |
---|---|---|
Class<T> | classType | The type of service. |
T | service | The service instance to register. |