Exemplo n.º 1
0
 protected void Application_Start(object sender, EventArgs e)
 {
     using (var container = new Container())
     {
         AutoMapperConfig.RegisterMappings();
         container.Options.DefaultScopedLifestyle = new WcfOperationLifestyle();
         SimpleInjectorServiceHostFactory.SetContainer(container);
         SimpleInjectorWcfInitializer.Initialize();
     }
 }
Exemplo n.º 2
0
 protected void Application_Start(object sender, EventArgs e)
 {
     AutoMapperConfig.RegisterMappings();
     SimpleInjectorWcfInitializer.Initialize();
 }