/// <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 )); }
/// <summary> /// Ctor /// </summary> public S3ClientConfigurations() { _clients = new Dictionary <string, S3ClientConfiguration> { //Add default client [S3ClientNameAttribute.GetClientName <DefaultS3Client>()] = new S3ClientConfiguration() { Vendor = S3VendorType.Amazon } }; }
/// <summary> /// Get configuration by generics type /// </summary> /// <typeparam name="TClient"></typeparam> /// <returns></returns> public S3ClientConfiguration GetConfiguration <TClient>() { return(GetConfiguration(S3ClientNameAttribute.GetClientName <TClient>())); }