C# Класс SmartDeviceProject1.SqlCeOfflineSyncProvider

Наследование: Microsoft.Samples.Synchronization.ClientServices.OfflineSyncProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

BeginSession() публичный Метод

OfflineSyncProvider method called when the controller is about to start a sync session.
public BeginSession ( ) : void
Результат void

EndSession() публичный Метод

OfflineSyncProvider method called when sync is completed.
public EndSession ( ) : void
Результат void

GetChangeSet() публичный Метод

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
Результат Microsoft.Samples.Synchronization.ClientServices.ChangeSet

GetServerBlob() публичный Метод

Returns the last server blob that was received during sync
public GetServerBlob ( ) : byte[]
Результат byte[]

OnChangeSetUploaded() публичный Метод

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.
Результат void

SaveChangeSet() публичный Метод

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.
Результат void