public static IDependencyResolver GetResolver(IInversionOfControlMapper mapper) { container = new StructureMapContainer(); if (mapper != null) { mapper.DefineMappings(container); } return new SmDependencyResolver(container); }
public static void Initialize(System.Reflection.Assembly domainAssembly, System.Reflection.Assembly infrastructureAssembly, DefaultAutomappingConfiguration mappingConfiguration, IInversionOfControlMapper inversionOfControlMapper) { ApplicationManager.Initialize(new ApplicationConfiguration { DomainAssembly = domainAssembly, Fluent = new ApplicationConfiguration.FluentConfiguration { OverrideAssembly = infrastructureAssembly, MappingConfigurationInstance = mappingConfiguration }, InversionOfControl = new ApplicationConfiguration.InversionOfControlConfiguration { MapperInstance = inversionOfControlMapper } }); }
public static void Initialize(System.Reflection.Assembly domainAssembly, System.Reflection.Assembly infrastructureAssembly, IInversionOfControlMapper inversionOfControlMapper = null) { ApplicationManager.Initialize(domainAssembly, infrastructureAssembly, new DefaultAutomappingConfiguration(), inversionOfControlMapper); }