-
-
Save MoimHossain/7683dc4905bd2c4d79b70d54aeb35886 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<bool> CreateFileSystemAsync( | |
string fileSystemName) | |
{ | |
var tokenInfo = await tokenProvider.GetAccessTokenV2EndpointAsync(); | |
var jsonContent = new StringContent(string.Empty); | |
var headers = Statics.Http.DefaultRequestHeaders; | |
headers.Clear(); | |
headers.Add("Authorization", $"Bearer {tokenInfo.access_token}"); | |
headers.Add(API_VERSION_HEADER_NAME, API_VERSION_HEADER_VALUE); | |
var response = await Statics.Http.PutAsync($"{baseUri}{WebUtility.UrlEncode(fileSystemName)}?resource=filesystem", jsonContent); | |
return response.IsSuccessStatusCode; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment