Ejemplo n.º 1
0
 /// <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
                ));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// ctor
 /// </summary>
 public FilePoolConfigurations()
 {
     _filePools = new Dictionary <string, FilePoolConfiguration>()
     {
         //Add default file pool
         [FilePoolNameAttribute.GetFilePoolName <DefaultFilePool>()] = new FilePoolConfiguration()
     };
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Get file pool configuration by generics type
 /// </summary>
 /// <typeparam name="TFilePool"></typeparam>
 /// <returns></returns>
 public FilePoolConfiguration GetConfiguration <TFilePool>()
 {
     return(GetConfiguration(FilePoolNameAttribute.GetFilePoolName <TFilePool>()));
 }