CreateFileAsync() 공개 정적인 메소드

public static CreateFileAsync ( string fileName, string fileContent ) : Task
fileName string
fileContent string
리턴 Task
예제 #1
0
        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);
        }
예제 #2
0
        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));
        }