ApplicationContext that can scan to identify object definitions
Inheritance: Spring.Context.Support.GenericApplicationContext
コード例 #1
0
ファイル: Program.cs プロジェクト: Binodesk/spring-net
 private static IApplicationContext CreateContainerUsingCodeConfig()
 {
     CodeConfigApplicationContext ctx = new CodeConfigApplicationContext();
     ctx.ScanAllAssemblies();
     ctx.Refresh();
     return ctx;
 }
コード例 #2
0
 public void _TestSetup()
 {
     _context = new CodeConfigApplicationContext();
     _scanner = new AssemblyObjectDefinitionScanner();
 }
コード例 #3
0
 public void _TestSetup()
 {
     _context = new CodeConfigApplicationContext();
     _scanner = new AssemblyObjectDefinitionScanner();
 }
コード例 #4
0
 private static IApplicationContext CreateContextFromDefinition(Type definitionType)
 {
     CodeConfigApplicationContext context = new CodeConfigApplicationContext();
     context.ScanWithTypeFilter(t => t.Equals(definitionType));
     context.Refresh();
     return context;
 }
コード例 #5
0
 public void _TestSetup()
 {
     _context = new CodeConfigApplicationContext();
 }
 public void _TestSetup()
 {
     _context = new CodeConfigApplicationContext();
 }