コード例 #1
0
        public static void Start()
        {
            DependencyInjectionContainer container = GraceIoc.Initialize();

            GraceDependencyResolver = new GraceDependencyResolver(container);
            DependencyResolver.SetResolver(GraceDependencyResolver);

            _graceWebApiDependencyResolver = new GraceWebApiDependencyResolver(container);
            GlobalConfiguration.Configuration.DependencyResolver = _graceWebApiDependencyResolver;
            DynamicModuleUtility.RegisterModule(typeof(GraceScopeModule));

            DomainEvents.Initiate(GraceDependencyResolver);
        }
コード例 #2
0
 public void IntiateDependancyResolver()
 {
     DomainEvents.Initiate(new DependancyResolver());
 }