Skip to content

taskrunnertech/BlobStoreFactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Blob Storage Helper

Getting Started

services.AddBlobStorage<IService, Service>(ConfigurationSection1);
services.AddBlobStorage<IService2, Service2>(ConfigurationSection2);

# or 

services.AddBlobStorage<IService>(ConfigurationSection1); 

public class Service : IService
{
	private readonly IBlob _blob;
	Service (BlobFactory<IService> blobFactory)
	{
		_blob = blobFactory.Value;
	}
}

Configuration

	public class StoreConf
    {
        public string Connectionstring { get; set; }

        public bool CreateCollectionsIfNotExist { get; set; } = true;

        public bool IsCollectionPrivate { get; set; } = true;
    }
{
	"storage1":	{
		"Connectionstring": "",
		"CreateCollectionsIfNotExist":true,
		"IsCollectionPrivate": true
	}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages