Share via


IMobileServiceSyncContext Interface

Definition

Provides a way to synchronize local database with remote database.

public interface IMobileServiceSyncContext
type IMobileServiceSyncContext = interface
Public Interface IMobileServiceSyncContext

Properties

Handler

An instance of IMobileServiceSyncHandler

IsInitialized

Indicates whether sync context has been initialized or not.

PendingOperations

Returns the number of pending operations that are not yet pushed to remote table.

Store

An instance of IMobileServiceLocalStore

StoreTrackingOptions

A flag indicating which store tracking options are currently enabled.

Methods

InitializeAsync(IMobileServiceLocalStore, IMobileServiceSyncHandler, StoreTrackingOptions)

Initializes the sync context.

InitializeAsync(IMobileServiceLocalStore, IMobileServiceSyncHandler)

Initializes the sync context.

PushAsync(CancellationToken)

Pushes all pending operations up to the remote table.

Extension Methods

InitializeAsync(IMobileServiceSyncContext, IMobileServiceLocalStore, StoreTrackingOptions)

Initializes the sync context.

InitializeAsync(IMobileServiceSyncContext, IMobileServiceLocalStore)

Initializes the sync context.

PushAsync(IMobileServiceSyncContext)

Replays all pending local operations against the remote tables.

Applies to