Exemple #1
0
 /// <summary>
 /// Configure Client
 /// </summary>
 /// <typeparam name="TClient"></typeparam>
 /// <param name="configureAction"></param>
 /// <returns></returns>
 public S3ClientConfigurations Configure <TClient>(
     Action <S3ClientConfiguration> configureAction)
 {
     return(Configure(
                S3ClientNameAttribute.GetClientName <TClient>(),
                configureAction
                ));
 }
Exemple #2
0
 /// <summary>
 /// Ctor
 /// </summary>
 public S3ClientConfigurations()
 {
     _clients = new Dictionary <string, S3ClientConfiguration>
     {
         //Add default client
         [S3ClientNameAttribute.GetClientName <DefaultS3Client>()] = new S3ClientConfiguration()
         {
             Vendor = S3VendorType.Amazon
         }
     };
 }
Exemple #3
0
 /// <summary>
 /// Get configuration by generics type
 /// </summary>
 /// <typeparam name="TClient"></typeparam>
 /// <returns></returns>
 public S3ClientConfiguration GetConfiguration <TClient>()
 {
     return(GetConfiguration(S3ClientNameAttribute.GetClientName <TClient>()));
 }