Skip to content

Instantly share code, notes, and snippets.

@fernandoacorreia
Created December 8, 2012 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandoacorreia/4240367 to your computer and use it in GitHub Desktop.
Save fernandoacorreia/4240367 to your computer and use it in GitHub Desktop.
Asynchronous insert in Azure Tables (fragment)
public void Write(TableServiceEntity entity)
{
TableServiceContext context = _tableClient.GetDataServiceContext();
context.AddObject(_tableName, entity);
context.BeginSaveChangesWithRetries((asyncResult => context.EndSaveChangesWithRetries(asyncResult)), null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment