HandleDocumentNotFound() private method

private HandleDocumentNotFound ( ) : void
return void
Ejemplo n.º 1
0
            private void DoRefresh()
            {
                parent.DatabaseCommands.GetAsync(parent.DocumentKey)
                .ContinueOnSuccess(doc =>
                {
                    if (doc == null)
                    {
                        parent.HandleDocumentNotFound();
                        return;
                    }

                    parent.document.Value = doc;
                })
                .Catch();
            }
Ejemplo n.º 2
0
            public override void Execute(object _)
            {
                parent.DatabaseCommands.GetAsync(parent.Key)
                .ContinueOnSuccess(doc =>
                {
                    if (doc == null)
                    {
                        parent.HandleDocumentNotFound();
                        return;
                    }

                    parent.document.Value = doc;
                })
                .Catch();
            }