コード例 #1
0
 static ParameterResolverMap()
 {
     resolvers = new Dictionary<Type, IParameterResolver>();
     resolvers[typeof (CreateNewAttribute)] = new CreateNewParameterResolver();
     resolvers[typeof (DependencyAttribute)] = new DependencyParameterResolver();
     resolvers[typeof (ServiceDependencyAttribute)] = new ServiceDependencyParameterResolver();
     resolvers[typeof (StateDependencyAttribute)] = new StateDependencyParameterResolver();
     resolvers[typeof (ProviderDependencyAttribute)] = new ProviderDependencyParameterResolver();
 }
コード例 #2
0
 static ParameterResolverMap()
 {
     resolvers = new Dictionary <Type, IParameterResolver>();
     resolvers[typeof(CreateNewAttribute)]          = new CreateNewParameterResolver();
     resolvers[typeof(DependencyAttribute)]         = new DependencyParameterResolver();
     resolvers[typeof(ServiceDependencyAttribute)]  = new ServiceDependencyParameterResolver();
     resolvers[typeof(StateDependencyAttribute)]    = new StateDependencyParameterResolver();
     resolvers[typeof(ProviderDependencyAttribute)] = new ProviderDependencyParameterResolver();
 }