private async Task <FileAccessPolyFill.StorageFile> CreateFileAsyncHelper(string desiredName, Windows.Storage.CreationCollisionOption options) { var content = await _folder.CreateFileAsync(desiredName, options); return(new FileAccessPolyFill.StorageFile(content)); }
//public IAsyncOperation<StorageFile> CreateFileAsync(string desiredName, CreationCollisionOption options) public Windows.Foundation.IAsyncOperation <FileAccessPolyFill.StorageFile> CreateFileAsync(string desiredName, Windows.Storage.CreationCollisionOption options) { return(this.CreateFileAsyncHelper(desiredName, options).AsAsyncOperation()); }