public static IBlobProvider Get <TContainer>(
            [NotNull] this IBlobProviderSelector selector)
        {
            Check.NotNull(selector, nameof(selector));

            return(selector.Get(BlobContainerNameAttribute.GetContainerName <TContainer>()));
        }
Esempio n. 2
0
 public BlobContainerConfigurations Configure <TContainer>(
     Action <BlobContainerConfiguration> configureAction)
 {
     return(Configure(
                BlobContainerNameAttribute.GetContainerName <TContainer>(),
                configureAction
                ));
 }
Esempio n. 3
0
 public BlobContainerConfigurations()
 {
     _containers = new Dictionary <string, BlobContainerConfiguration>
     {
         //Add default container
         [BlobContainerNameAttribute.GetContainerName <DefaultContainer>()] = new BlobContainerConfiguration()
     };
 }
Esempio n. 4
0
 public BlobContainerConfiguration GetConfiguration <TContainer>()
 {
     return(GetConfiguration(BlobContainerNameAttribute.GetContainerName <TContainer>()));
 }