C# Class SmartDeviceProject1.SqlCeOfflineSyncProvider

Inheritance: Microsoft.Samples.Synchronization.ClientServices.OfflineSyncProvider
Afficher le fichier Open project: rafek/SyncFx Class Usage Examples

Méthodes publiques

Méthode Description
BeginSession ( ) : void

OfflineSyncProvider method called when the controller is about to start a sync session.

EndSession ( ) : void

OfflineSyncProvider method called when sync is completed.

GetChangeSet ( System.Guid state ) : ChangeSet

OfflineSyncProvider method implementation to return a set of sync changes.

GetServerBlob ( ) : byte[]

Returns the last server blob that was received during sync

OnChangeSetUploaded ( System.Guid state, ChangeSetResponse response ) : void

OfflineSyncProvider method implementation called when a change set returned from GetChangeSet has been successfully uploaded.

SaveChangeSet ( ChangeSet changeSet ) : void

OfflineSyncProvider method called to save changes retrieved from the sync service.

Method Details

BeginSession() public méthode

OfflineSyncProvider method called when the controller is about to start a sync session.
public BeginSession ( ) : void
Résultat void

EndSession() public méthode

OfflineSyncProvider method called when sync is completed.
public EndSession ( ) : void
Résultat void

GetChangeSet() public méthode

OfflineSyncProvider method implementation to return a set of sync changes.
public GetChangeSet ( System.Guid state ) : ChangeSet
state System.Guid A unique identifier for the changes that are uploaded
Résultat Microsoft.Samples.Synchronization.ClientServices.ChangeSet

GetServerBlob() public méthode

Returns the last server blob that was received during sync
public GetServerBlob ( ) : byte[]
Résultat byte[]

OnChangeSetUploaded() public méthode

OfflineSyncProvider method implementation called when a change set returned from GetChangeSet has been successfully uploaded.
public OnChangeSetUploaded ( System.Guid state, ChangeSetResponse response ) : void
state System.Guid The unique identifier passed in to the GetChangeSet call.
response Microsoft.Samples.Synchronization.ClientServices.ChangeSetResponse ChangeSetResponse that contains an updated server blob and any conflicts or errors that /// happened on the service.
Résultat void

SaveChangeSet() public méthode

OfflineSyncProvider method called to save changes retrieved from the sync service.
public SaveChangeSet ( ChangeSet changeSet ) : void
changeSet Microsoft.Samples.Synchronization.ClientServices.ChangeSet The set of changes from the service to save. Also contains an updated server /// blob.
Résultat void