Beispiel #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();
     }
 }
Beispiel #2
0
 protected void Application_Start(object sender, EventArgs e)
 {
     AutoMapperConfig.RegisterMappings();
     SimpleInjectorWcfInitializer.Initialize();
 }