/// <summary> /// Configure file pool by generics type /// </summary> /// <typeparam name="TFilePool"></typeparam> /// <param name="configureAction"></param> /// <returns></returns> public FilePoolConfigurations Configure <TFilePool>( Action <FilePoolConfiguration> configureAction) { return(Configure( FilePoolNameAttribute.GetFilePoolName <TFilePool>(), configureAction )); }
/// <summary> /// ctor /// </summary> public FilePoolConfigurations() { _filePools = new Dictionary <string, FilePoolConfiguration>() { //Add default file pool [FilePoolNameAttribute.GetFilePoolName <DefaultFilePool>()] = new FilePoolConfiguration() }; }
/// <summary> /// Get file pool configuration by generics type /// </summary> /// <typeparam name="TFilePool"></typeparam> /// <returns></returns> public FilePoolConfiguration GetConfiguration <TFilePool>() { return(GetConfiguration(FilePoolNameAttribute.GetFilePoolName <TFilePool>())); }