Ejemplo n.º 1
0
 /// <summary>
 /// Save state
 /// </summary>
 public async Task SaveState()
 {
     try
     {
         var json = _currentPlaylist.Serialize();
         await FileStorageHelper.WriteText("currentPlaylist.js", json);
     }
     catch (Exception ex)
     {
         Logger.Error(ex, "Unable to save AudioService state");
     }
 }