コード例 #1
0
ファイル: Global.asax.cs プロジェクト: Wouyoshi/projects
 /// <summary>The configure windsor.</summary>
 /// <param name="configuration">The configuration.</param>
 public static void ConfigureWindsor(HttpConfiguration configuration)
 {
     container = new WindsorContainer();
     container.Install(FromAssembly.This());
     container.Kernel.Resolver.AddSubResolver(new CollectionResolver(container.Kernel, true));
     var dependencyResolver = new WindsorDependencyResolver(container);
     configuration.DependencyResolver = dependencyResolver;
 }