IMobileServiceSyncContext
Interface
Definition
Provides a way to synchronize local database with remote database.
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) |
Initializes the sync context. |
| InitializeAsync(IMobileServiceLocalStore, IMobileServiceSyncHandler, StoreTrackingOptions) |
Initializes the sync context. |
| PushAsync(CancellationToken) |
Pushes all pending operations up to the remote table. |
Extension Methods
| InitializeAsync(IMobileServiceSyncContext, IMobileServiceLocalStore) | |
| InitializeAsync(IMobileServiceSyncContext, IMobileServiceLocalStore, StoreTrackingOptions) | |
| PushAsync(IMobileServiceSyncContext) |