Skip to content

GetEstimatedChangesCountAsync Server Scope #615

Answered by Mimetis
dotnetninja asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @dotnetninja

You can try something like that:

Get Estimated changes from a client application

If you want to know if any changes, from a client application, (using a WebClientOrchestrator) you can do something like that:

var webClientOrchestrator = new WebClientOrchestrator(this.ServiceUri);
var agent = new SyncAgent(client.Provider, webClientOrchestrator, options, "scope1");

// Ensure scope is created locally
var clientScope = await agent.LocalOrchestrator.GetClientScopeAsync();

// get changes from server, without any changes sent from client side
var changes = await webClientOrchestrator.GetEstimatedChangesCountAsync(clientScope);

Get Estimated changes from a daemon application ru…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mimetis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants