async Task <IStorageFile> PackageToTempFileAsync(ReadLogEntriesResult result, int maxPayloadMb = 5 *(1024 * 1024)) { var file = await ApplicationData.Current.TemporaryFolder.CreateFileAsync(Guid.NewGuid().ToString() + ".txt"); // TODO - implement payload maximum... // ok... var json = result.ToJson(); await FileIO.WriteTextAsync(file, json); // return... return(file); }
private async Task<IStorageFile> PackageToTempFileAsync(ReadLogEntriesResult result, int maxPayloadMb = 5 * (1024 * 1024)) { var file = await ApplicationData.Current.TemporaryFolder.CreateFileAsync(Guid.NewGuid().ToString() + ".txt"); // TODO - implement payload maximum... // ok... var json = result.ToJson(); await FileIO.WriteTextAsync(file, json); // return... return file; }