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); }
public void IntiateDependancyResolver() { DomainEvents.Initiate(new DependancyResolver()); }