C# Class SmartDeviceProject1.SqlCeOfflineSyncProvider

Inheritance: Microsoft.Samples.Synchronization.ClientServices.OfflineSyncProvider
ファイルを表示 Open project: rafek/SyncFx Class Usage Examples

Public Methods

Method 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 method

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

EndSession() public method

OfflineSyncProvider method called when sync is completed.
public EndSession ( ) : void
return void

GetChangeSet() public method

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
return Microsoft.Samples.Synchronization.ClientServices.ChangeSet

GetServerBlob() public method

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

OnChangeSetUploaded() public method

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.
return void

SaveChangeSet() public method

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.
return void