Class SyncAgent
The agent is responsible for synchronizing data between two repositories.
Inheritance
System.Object
SyncAgent
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Sync
Assembly: Terrasoft.Sync.dll
Syntax
public class SyncAgent
Remarks
The agent doesn't know how he can resolve the conflicts if he fints conflict he redirects it to IConflictResolver that returns SyncConflictResolution object and based SyncConflictResolution agent conducts the necessary actions over providers.
Constructors
SyncAgent(UserConnection, LocalProvider, RemoteProvider)
Declaration
public SyncAgent(UserConnection userConnection, LocalProvider localProvider, RemoteProvider remoteProvider)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | |
LocalProvider | localProvider | |
RemoteProvider | remoteProvider |
SyncAgent(SyncContext)
Declaration
public SyncAgent(SyncContext syncContext)
Parameters
Type | Name | Description |
---|---|---|
SyncContext | syncContext |
Properties
LocalProvider
The object allows to get changes or apply the changes in BPMonline.
Declaration
public LocalProvider LocalProvider { get; }
Property Value
Type | Description |
---|---|
LocalProvider |
RemoteProvider
The object allows to get changes or apply the changes in remote storage.
Declaration
public RemoteProvider RemoteProvider { get; }
Property Value
Type | Description |
---|---|
RemoteProvider |
ReplicaMetadata
Declaration
public IReplicaMetadata ReplicaMetadata { get; }
Property Value
Type | Description |
---|---|
IReplicaMetadata |
SyncContext
Synchronization context.
Declaration
public SyncContext SyncContext { get; }
Property Value
Type | Description |
---|---|
SyncContext |
Methods
Synchronize()
Starts the synchronization process.
Declaration
public void Synchronize()
ThrowApplyingExceptions()
Declaration
public void ThrowApplyingExceptions()
Events
LocalItemAppliedInRemoteStore
Declaration
public event Action<SyncContext, IRemoteItem, LocalItem> LocalItemAppliedInRemoteStore
Event Type
Type | Description |
---|---|
System.Action<SyncContext, IRemoteItem, LocalItem> |
RemoteItemAppliedInLocalStore
Declaration
public event Action<SyncContext, IRemoteItem, LocalItem> RemoteItemAppliedInLocalStore
Event Type
Type | Description |
---|---|
System.Action<SyncContext, IRemoteItem, LocalItem> |