Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateIfNotExists fails in AzureDirectory #37

Open
BlackBatSoftware opened this issue Mar 3, 2020 · 2 comments
Open

CreateIfNotExists fails in AzureDirectory #37

BlackBatSoftware opened this issue Mar 3, 2020 · 2 comments

Comments

@BlackBatSoftware
Copy link
Contributor

There are versions of Windows.Azure.Storage that do not implement the "CreateIfNotExists" function syncronously, they only use the "CreateIfNotExistsAsync" method.

AzureDirectory.cs should have:

public void CreateContainer()
{
  _blobContainer = _blobClient.GetContainerReference(_containerName);
  _blobContainer.CreateIfNotExistsAsync().Wait();
}
@BlackBatSoftware
Copy link
Contributor Author

%^$%^#$% not letting me fix it! Grrrrr.

@BlackBatSoftware
Copy link
Contributor Author

Github is really ticking me off today. The same change is needed for the DeleteIfExistsAsync().Wait() in DeleteFile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant