Interface IMergeable<T>
Contract for any entity capable of merging itself (CRDT). The Framework will use this method in case of vector conflict.
Namespace: Morpheo.Sdk
Assembly: Morpheo.Sdk.dll
Syntax
public interface IMergeable<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the entity (e.g., Product, Customer). |
Methods
| Edit this page View SourceMerge(T)
Merges the current (local) instance with a remote version. Must return a new instance or modify the existing one to reflect the merged state.
Declaration
T Merge(T remote)
Parameters
| Type | Name | Description |
|---|---|---|
| T | remote | The remote instance to merge with. |
Returns
| Type | Description |
|---|---|
| T | The merged instance. |