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

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