C# Class Microsoft.WindowsAzure.MobileServices.Sync.OperationQueue

Queue of all operations i.e. Push, Pull, Insert, Update, Delete
Show file Open project: Azure/azure-mobile-apps-net-client Class Usage Examples

Public Methods

Method Description
CountPending ( string tableName ) : Task
DeleteAsync ( string id, long version ) : Task
EnqueueAsync ( Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceTableOperation op ) : Task
GetOperationAsync ( string id ) : Task
GetOperationByItemIdAsync ( string tableName, string itemId ) : Task
LoadAsync ( IMobileServiceLocalStore store ) : Task
LockItemAsync ( string id, CancellationToken cancellationToken ) : Task
LockTableAsync ( string name, CancellationToken cancellationToken ) : Task
OperationQueue ( IMobileServiceLocalStore store ) : System
PeekAsync ( long prevSequenceId, MobileServiceTableKind tableKind, IEnumerable tableNames ) : Task
UpdateAsync ( Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceTableOperation op ) : Task
UpdateAsync ( string id, long version, Newtonsoft.Json.Linq.JObject item ) : Task

Private Methods

Method Description
Compare ( BinaryOperatorKind kind, string member, object value ) : BinaryOperatorNode
CreateQuery ( ) : Microsoft.WindowsAzure.MobileServices.Query.MobileServiceTableQueryDescription
UpdateOperationCount ( long delta ) : void

Method Details

CountPending() public method

public CountPending ( string tableName ) : Task
tableName string
return Task

DeleteAsync() public method

public DeleteAsync ( string id, long version ) : Task
id string
version long
return Task

EnqueueAsync() public method

public EnqueueAsync ( Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceTableOperation op ) : Task
op Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceTableOperation
return Task

GetOperationAsync() public method

public GetOperationAsync ( string id ) : Task
id string
return Task

GetOperationByItemIdAsync() public method

public GetOperationByItemIdAsync ( string tableName, string itemId ) : Task
tableName string
itemId string
return Task

LoadAsync() public static method

public static LoadAsync ( IMobileServiceLocalStore store ) : Task
store IMobileServiceLocalStore
return Task

LockItemAsync() public method

public LockItemAsync ( string id, CancellationToken cancellationToken ) : Task
id string
cancellationToken System.Threading.CancellationToken
return Task

LockTableAsync() public method

public LockTableAsync ( string name, CancellationToken cancellationToken ) : Task
name string
cancellationToken System.Threading.CancellationToken
return Task

OperationQueue() public method

public OperationQueue ( IMobileServiceLocalStore store ) : System
store IMobileServiceLocalStore
return System

PeekAsync() public method

public PeekAsync ( long prevSequenceId, MobileServiceTableKind tableKind, IEnumerable tableNames ) : Task
prevSequenceId long
tableKind MobileServiceTableKind
tableNames IEnumerable
return Task

UpdateAsync() public method

public UpdateAsync ( Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceTableOperation op ) : Task
op Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceTableOperation
return Task

UpdateAsync() public method

public UpdateAsync ( string id, long version, Newtonsoft.Json.Linq.JObject item ) : Task
id string
version long
item Newtonsoft.Json.Linq.JObject
return Task