StreetFoo.Client.ShareTargetPageViewModel.HandleShareCommandAsync C# (CSharp) Method

HandleShareCommandAsync() private method

private HandleShareCommandAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        private async Task HandleShareCommandAsync()
        {
            try
            {
                // tell the OS that we've started...
                this.ShareOperation.ReportStarted();

                // placeholder message...
                await this.Host.ShowAlertAsync("Shared.");
            }
            catch (Exception ex)
            {
                Debug.WriteLine("Sharing failed: " + ex.ToString());
                this.ShareOperation.ReportError("The sharing operation failed.");
            }
            finally
            {
                this.ShareOperation.ReportCompleted();
            }
        }