1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 23:16:09 +00:00

Async du get database path pour permettre création / copie async

This commit is contained in:
Yan Maniez 2018-10-20 21:57:17 +02:00
parent 7d72713cd4
commit f1a726e6b1
9 changed files with 96 additions and 124 deletions

View file

@ -1,6 +1,7 @@
using AideDeJeu.Tools;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using Windows.ApplicationModel;
[assembly: Xamarin.Forms.Dependency(typeof(AideDeJeu.UWP.Version_UWP))]
@ -22,7 +23,7 @@ namespace AideDeJeu.UWP
return 0;
}
public string GetDatabasePath(string databaseName)
public async Task<string> GetDatabasePathAsync(string databaseName)
{
var documentsDirectoryPath = Windows.Storage.ApplicationData.Current.LocalFolder.Path;
var path = Path.Combine(documentsDirectoryPath, databaseName);