You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So an easy fix but quite breaking for existing projects, is to inject a connection-string or a CloudStorageAccount instead of StorageCredentials in BlobStorage.cs.
Any possibility for adding this in future releases?
The text was updated successfully, but these errors were encountered:
Hi there! I don't see any problem adding a second constructor & extension method that creates the storage with a connection string & optional container name, like so:
public BlobStorage(string connectionString, string containerName = "uploads")
{
...
}
In fact, to get this going you should be able to just extend the BlobStorage class in your own project to test it:
using Piranha.Azure;
public CustomBlobStorage : BlobStorage
{
public CustomBlobStorage(string connectionString, string containerName = "uploads")
{
...
}
}
Hi.
So an easy fix but quite breaking for existing projects, is to inject a connection-string or a CloudStorageAccount instead of StorageCredentials in BlobStorage.cs.
Any possibility for adding this in future releases?
The text was updated successfully, but these errors were encountered: