Skip to content

Instantly share code, notes, and snippets.

@JeremyLikness
Created July 23, 2019 14:59
Show Gist options
  • Select an option

  • Save JeremyLikness/505b7cfa2a11bd08f915d1d0d7da05ce to your computer and use it in GitHub Desktop.

Select an option

Save JeremyLikness/505b7cfa2a11bd08f915d1d0d7da05ce to your computer and use it in GitHub Desktop.
Returning the aggregate
var userCount = await client.ReadEntityStateAsync<int>(
UserCounter.Id);
return new OkObjectResult(new
{
...
activeUsers = userCount.EntityState,
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment