Chimney.Shared.UserControls.ChimneyServerUserControl.Pause C# (CSharp) Method

Pause() private method

private Pause ( ) : void
return void
        private async void Pause()
        {
            current_state = "pause";

#if WINDOWS_PHONE_APP
            BackgroundMediaPlayer.SendMessageToBackground(new ValueSet
            {
                {"Pause", string.Empty}
                });
#else
            try
            {
                await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
() =>
{
    ChimneyMPDMediaElement.Pause();
});
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
#endif
            /*
            
            var stateOption = await Dbconnection.FindAsync<Option>(o => o.Name == "state");
            if (stateOption != null)
            {
                stateOption.ValueString = current_state;

                await Dbconnection.UpdateAsync(stateOption);
            }
            */
        }
ChimneyServerUserControl