public static CreateFileAsync ( string fileName, string fileContent ) : Task |
||
fileName | string | |
fileContent | string | |
Résultat | Task |
public static async Task <bool> TryDownloadFileAsync() { var createdFileId = await UserSnippets.CreateFileAsync(Guid.NewGuid().ToString(), STORY_DATA_IDENTIFIER); var fileContent = await UserSnippets.DownloadFileAsync(createdFileId); return(fileContent != null); }
public static async Task <bool> TryUpdateFileAsync() { var createdFileId = await UserSnippets.CreateFileAsync(Guid.NewGuid().ToString(), STORY_DATA_IDENTIFIER); return(await UserSnippets.UpdateFileAsync(createdFileId, STORY_DATA_IDENTIFIER)); }