C# Class VelocityDBExtensions.SyncProvider

VelocityDB standard Microsoft Sync provider as described in https://msdn.microsoft.com/en-us/library/bb902826(v=sql.110).aspx
Inheritance: KnowledgeSyncProvider, IChangeDataRetriever, INotifyingChangeApplierTarget
Datei anzeigen Open project: VelocityDB/VelocityDB Class Usage Examples

Public Methods

Method Description
BeginSession ( SyncProviderPosition position, SyncSessionContext syncSessionContext ) : void
EndSession ( SyncSessionContext syncSessionContext ) : void
Equals ( object obj ) : bool
GetChangeBatch ( uint batchSize, SyncKnowledge destinationKnowledge, object &changeDataRetriever ) : ChangeBatch
GetDataRetriever ( ) : IChangeDataRetriever
GetFullEnumerationChangeBatch ( uint batchSize, SyncId lowerEnumerationBound, SyncKnowledge knowledgeForDataRetrieval, object &changeDataRetriever ) : FullEnumerationChangeBatch
GetHashCode ( ) : int
GetNextTickCount ( ) : ulong
GetSyncBatchParameters ( uint &batchSize, SyncKnowledge &knowledge ) : void
LoadChangeData ( LoadChangeContext loadChangeContext ) : object
ProcessChangeBatch ( ConflictResolutionPolicy resolutionPolicy, ChangeBatch sourceChanges, object changeDataRetriever, SyncCallbacks syncCallbacks, SyncSessionStatistics sessionStatistics ) : void
ProcessFullEnumerationChangeBatch ( ConflictResolutionPolicy resolutionPolicy, FullEnumerationChangeBatch sourceChanges, object changeDataRetriever, SyncCallbacks syncCallbacks, SyncSessionStatistics sessionStatistics ) : void
SaveChangeWithChangeUnits ( ItemChange change, SaveChangeWithChangeUnitsContext context ) : void
SaveConflict ( ItemChange conflictingChange, object conflictingChangeData, SyncKnowledge conflictingChangeKnowledge ) : void
SaveItemChange ( SaveChangeAction saveChangeAction, ItemChange change, SaveChangeContext context ) : void
StoreKnowledgeForScope ( SyncKnowledge knowledge, ForgottenKnowledge forgottenKnowledge ) : void
SyncProvider ( SessionBase session ) : Microsoft.Synchronization
ToString ( ) : string
TryGetDestinationVersion ( ItemChange sourceChange, ItemChange &destinationVersion ) : bool

Method Details

BeginSession() public method

public BeginSession ( SyncProviderPosition position, SyncSessionContext syncSessionContext ) : void
position SyncProviderPosition
syncSessionContext SyncSessionContext
return void

EndSession() public method

public EndSession ( SyncSessionContext syncSessionContext ) : void
syncSessionContext SyncSessionContext
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetChangeBatch() public method

public GetChangeBatch ( uint batchSize, SyncKnowledge destinationKnowledge, object &changeDataRetriever ) : ChangeBatch
batchSize uint
destinationKnowledge SyncKnowledge
changeDataRetriever object
return ChangeBatch

GetDataRetriever() public method

public GetDataRetriever ( ) : IChangeDataRetriever
return IChangeDataRetriever

GetFullEnumerationChangeBatch() public method

public GetFullEnumerationChangeBatch ( uint batchSize, SyncId lowerEnumerationBound, SyncKnowledge knowledgeForDataRetrieval, object &changeDataRetriever ) : FullEnumerationChangeBatch
batchSize uint
lowerEnumerationBound SyncId
knowledgeForDataRetrieval SyncKnowledge
changeDataRetriever object
return FullEnumerationChangeBatch

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetNextTickCount() public method

public GetNextTickCount ( ) : ulong
return ulong

GetSyncBatchParameters() public method

public GetSyncBatchParameters ( uint &batchSize, SyncKnowledge &knowledge ) : void
batchSize uint
knowledge SyncKnowledge
return void

LoadChangeData() public method

public LoadChangeData ( LoadChangeContext loadChangeContext ) : object
loadChangeContext LoadChangeContext
return object

ProcessChangeBatch() public method

public ProcessChangeBatch ( ConflictResolutionPolicy resolutionPolicy, ChangeBatch sourceChanges, object changeDataRetriever, SyncCallbacks syncCallbacks, SyncSessionStatistics sessionStatistics ) : void
resolutionPolicy ConflictResolutionPolicy
sourceChanges ChangeBatch
changeDataRetriever object
syncCallbacks SyncCallbacks
sessionStatistics SyncSessionStatistics
return void

ProcessFullEnumerationChangeBatch() public method

public ProcessFullEnumerationChangeBatch ( ConflictResolutionPolicy resolutionPolicy, FullEnumerationChangeBatch sourceChanges, object changeDataRetriever, SyncCallbacks syncCallbacks, SyncSessionStatistics sessionStatistics ) : void
resolutionPolicy ConflictResolutionPolicy
sourceChanges FullEnumerationChangeBatch
changeDataRetriever object
syncCallbacks SyncCallbacks
sessionStatistics SyncSessionStatistics
return void

SaveChangeWithChangeUnits() public method

public SaveChangeWithChangeUnits ( ItemChange change, SaveChangeWithChangeUnitsContext context ) : void
change ItemChange
context SaveChangeWithChangeUnitsContext
return void

SaveConflict() public method

public SaveConflict ( ItemChange conflictingChange, object conflictingChangeData, SyncKnowledge conflictingChangeKnowledge ) : void
conflictingChange ItemChange
conflictingChangeData object
conflictingChangeKnowledge SyncKnowledge
return void

SaveItemChange() public method

public SaveItemChange ( SaveChangeAction saveChangeAction, ItemChange change, SaveChangeContext context ) : void
saveChangeAction SaveChangeAction
change ItemChange
context SaveChangeContext
return void

StoreKnowledgeForScope() public method

public StoreKnowledgeForScope ( SyncKnowledge knowledge, ForgottenKnowledge forgottenKnowledge ) : void
knowledge SyncKnowledge
forgottenKnowledge ForgottenKnowledge
return void

SyncProvider() public method

public SyncProvider ( SessionBase session ) : Microsoft.Synchronization
session SessionBase
return Microsoft.Synchronization

ToString() public method

public ToString ( ) : string
return string

TryGetDestinationVersion() public method

public TryGetDestinationVersion ( ItemChange sourceChange, ItemChange &destinationVersion ) : bool
sourceChange ItemChange
destinationVersion ItemChange
return bool