Show / Hide Table of Contents

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>

Extension Methods

ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance, Boolean)
NSubstituteExtension.Protected(Object, String, Object[])
NSubstituteExtension.Protected(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedProperty(Object, String)
NSubstituteExtension.MatchInstance<T>(T)
SubstituteUtilities.GetIsSubstituteObject(Object)
SubstituteUtilities.Instead<TInstance, TValue>(TInstance, Func<TInstance, TValue>)
Back to top Generated by DocFX