public async Task <IRandomAccessStream> OpenAsync(Windows.Storage.FileAccessMode accessMode) { return(await Task.FromResult(default(IRandomAccessStream))); }
private Windows.Storage.Streams.IRandomAccessStream OnCoreOpenFileStream(string path, Windows.Storage.FileAccessMode fileAccess) { var accessMode = fileAccess == Windows.Storage.FileAccessMode.Read ? FileAccess.Read : FileAccess.ReadWrite; var stream = StreamProvider.OpenFileStreamAsync(path, accessMode).Result; var output = stream?.AsRandomAccessStream(); return(output); }