Partager via


IMobileServiceSyncContext Interface

Définition

Fournit un moyen de synchroniser une base de données locale avec une base de données distante.

public interface IMobileServiceSyncContext
type IMobileServiceSyncContext = interface
Public Interface IMobileServiceSyncContext

Propriétés

Handler

Instance de .IMobileServiceSyncHandler

IsInitialized

Indique si le contexte de synchronisation a été initialisé ou non.

PendingOperations

Retourne le nombre d’opérations en attente qui ne sont pas encore envoyées à la table distante.

Store

Instance de .IMobileServiceLocalStore

StoreTrackingOptions

Indicateur indiquant les options de suivi du magasin actuellement activées.

Méthodes

InitializeAsync(IMobileServiceLocalStore, IMobileServiceSyncHandler)

Initialise le contexte de synchronisation.

InitializeAsync(IMobileServiceLocalStore, IMobileServiceSyncHandler, StoreTrackingOptions)

Initialise le contexte de synchronisation.

PushAsync(CancellationToken)

Envoie toutes les opérations en attente vers la table distante.

Méthodes d’extension

InitializeAsync(IMobileServiceSyncContext, IMobileServiceLocalStore)

Initialise le contexte de synchronisation.

InitializeAsync(IMobileServiceSyncContext, IMobileServiceLocalStore, StoreTrackingOptions)

Initialise le contexte de synchronisation.

PushAsync(IMobileServiceSyncContext)

Relecture toutes les opérations locales en attente sur les tables distantes.

S’applique à