Class Config
- Namespace
- Homa.Sdk.Configuration
- Assembly
- Homa.Sdk.Configuration.dll
A static interface for accessing the config objects at runtime.
public static class Config
- Inheritance
-
Config
- Inherited Members
Properties
IsInitialized
Returns true once the Configuration module has been initialized.
public static bool IsInitialized { get; }
Property Value
- See Also
Service
Provides access to the underlying configuration service.
public static IConfigService Service { get; }
Property Value
Remarks
To create and initialize the service, use Initialize() method.
- See Also
Methods
Create()
Create and load the default catalog.
public static void Create()
Deinitialize()
Deinitializes the Configuration module.
public static void Deinitialize()
GetHandle<T>()
Retrieves a handle with a config object of type T.
public static IConfigHandle<T> GetHandle<T>()
Returns
- IConfigHandle<T>
A handle with the config object of type
T.
Type Parameters
TThe type of the config object stored in the handle. Config types must use the ConfigAttribute.
Exceptions
- ConfigNotInitializedException
Thrown when trying to access Config before it has been initialized.
Initialize()
Initializes the Configuration module.
public static Task Initialize()
Returns
RequestCatalogUpdate()
Schedules a catalog update to its latest version.
public static void RequestCatalogUpdate()
- See Also
Events
Initialized
Is invoked once the Configuration module has been initialized.
public static event Action Initialized
Event Type
- See Also