Interface IPatchSource
- Namespace
- Homa.Sdk.Configuration
- Assembly
- Homa.Sdk.Configuration.dll
Implement this interface to apply patches to the config(s).
public interface IPatchSource
Properties
DefaultPatchPriority
Default priority of every patch returned by this source. Patches are applied in ascending order of priority, so that lower priority patches can be overridden by higher priority ones.
int DefaultPatchPriority { get; }
Property Value
Remarks
This value should be constant and not change during the lifetime of the application.
PatchGuid
Unique identifier of the available patch. Used to determine if the patch has changed.
Guid PatchGuid { get; }
Property Value
- Guid
Empty guid if the patch is not available. Otherwise, a different guid for each patch.
Methods
Deinitialize()
Called by the config system to deinitialize this object.
void Deinitialize()
Initialize()
Called by the config system to initialize this object.
void Initialize()
ReadPatchAsync()
Returns the latest patch available. Newer patches will override any older ones from the same source.
Task<Patch> ReadPatchAsync()