Skip to content

Instantly share code, notes, and snippets.

@MoimHossain
Created September 19, 2019 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MoimHossain/eba904605acc232e64ba2deadaa902cd to your computer and use it in GitHub Desktop.
Save MoimHossain/eba904605acc232e64ba2deadaa902cd to your computer and use it in GitHub Desktop.
public class FileSystemApi
{
private readonly string storageAccountName;
private readonly OAuthTokenProvider tokenProvider;
private readonly Uri baseUri;
private const string ACK_HEADER_NAME = "x-ms-acl";
private const string API_VERSION_HEADER_NAME = "x-ms-version";
private const string API_VERSION_HEADER_VALUE = "2018-11-09";
private int Timeout = 100;
public FileSystemApi(string storageAccountName, OAuthTokenProvider tokenProvider)
{
this.storageAccountName = storageAccountName;
this.tokenProvider = tokenProvider;
this.baseUri = new Uri($"https://{this.storageAccountName}.dfs.core.windows.net");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment