Table of Contents

Interface IModelSynchronization

Namespace
NMF.AnyText
Assembly
NMF.AnyText.Synchronizations.dll

Denotes a model synchronization

public interface IModelSynchronization

Properties

IsAutomatic

True, if the synchronization should be performed automatically, otherwise false

bool IsAutomatic { get; }

Property Value

bool

Name

The unique identifier of the synchronization

string Name { get; }

Property Value

string

Methods

CanSynchronize(Uri, out Uri)

Determines whether a document of the given Uri can be synchronized

bool CanSynchronize(Uri uri, out Uri synchronizedUri)

Parameters

uri Uri

the Uri to synchronize

synchronizedUri Uri

the Uri that the given document can be synchronized with

Returns

bool

true, if the document can be synchronized, otherwise false

Synchronize(Uri, ref IModelElement, Uri, ref IModelElement)

Starts synchronizing the given Uri

IRunningSynchronization Synchronize(Uri uri1, ref IModelElement root1, Uri uri2, ref IModelElement root2)

Parameters

uri1 Uri

the first Uri to synchronize

root1 IModelElement

the root element of the first model

uri2 Uri

the second Uri to synchronize

root2 IModelElement

the root element of the second model

Returns

IRunningSynchronization