Пример #1
0
 public static void ScanSpecificationInAssembly <T>()
 {
     container = container ?? new Container();
     container.Configure(p => p.Scan(Scanner =>
     {
         Scanner.AssemblyContainingType <T>();
         Scanner.ConnectImplementationsToTypesClosing(typeof(ISpecification <>));
     }));
 }