Interface ISyncRoutingStrategy
Defines the strategy for data propagation within the network. Allows implementing logics such as "Single Server", "Full Mesh", or "Cascade (Failover)".
Namespace: Morpheo.Sdk
Assembly: Morpheo.Sdk.dll
Syntax
public interface ISyncRoutingStrategy
Methods
| Edit this page View SourcePropagateAsync(SyncLogDto, IEnumerable<PeerInfo>, Func<PeerInfo, SyncLogDto, Task<bool>>)
Executes the propagation of a log entry to appropriate targets.
Declaration
Task PropagateAsync(SyncLogDto log, IEnumerable<PeerInfo> candidates, Func<PeerInfo, SyncLogDto, Task<bool>> sendFunc)
Parameters
| Type | Name | Description |
|---|---|---|
| SyncLogDto | log | The data to send. |
| IEnumerable<PeerInfo> | candidates | The list of currently visible peers (via Discovery). |
| Func<PeerInfo, SyncLogDto, Task<bool>> | sendFunc | A delegate that performs the actual sending. Returns TRUE if the send was successful (ACK), FALSE otherwise. |
Returns
| Type | Description |
|---|---|
| Task |