Interface IConfigHandle<T>
- Namespace
- Homa.Sdk.Configuration
- Assembly
- Homa.Sdk.Configuration.dll
A wrapper around a config object. It allows for listening to the config remote updates and gives the user the ability to choose when to update the config.
public interface IConfigHandle<T>
Type Parameters
TThe type of the config object.
Properties
Config
Config object. It can be updated to match its remote counterpart by calling the UpdateConfig().
T Config { get; }
Property Value
- T
IsUpToDate
Indicates whether the config content matches its remote counterpart.
bool IsUpToDate { get; }
Property Value
Methods
UpdateConfig()
Replace existing config instance with the one that matches its remote counterpart.
void UpdateConfig()
Events
UpdateAvailable
Event triggered when the remote config state has changed.
event Action UpdateAvailable
Event Type
Remarks
If IConfigHandle<T> is no longer referenced the event will not be triggered.