private void DoRefresh() { parent.DatabaseCommands.GetAsync(parent.DocumentKey) .ContinueOnSuccess(doc => { if (doc == null) { parent.HandleDocumentNotFound(); return; } parent.document.Value = doc; }) .Catch(); }
public override void Execute(object _) { parent.DatabaseCommands.GetAsync(parent.Key) .ContinueOnSuccess(doc => { if (doc == null) { parent.HandleDocumentNotFound(); return; } parent.document.Value = doc; }) .Catch(); }