Exemple #1
0
 private static void ConfigureContainer(IModuleContext moduleContext, Container container)
 {
     Filters.BuildFilterPipeline(
         moduleContext.Advanced.FrameworkServices.GetServices <IConfigureContainerFilter>()
         .Append(GenericModuleContextFilterAdapter <Container> .Create(typeof(IConfigureContainerFilter <>))),
         (ctx, c) =>
     {
         ModuleMethodInvoker.CallOptionalMethod(ctx, "ConfigureContainer", container);
     })(moduleContext, container);
 }
Exemple #2
0
 private static void UseSimpleInjector(IModuleContext moduleContext, SimpleInjectorUseOptions options)
 {
     Filters.BuildFilterPipeline(
         moduleContext.Advanced.FrameworkServices.GetServices <IUseSimpleInjectorFilter>()
         .Append(GenericModuleContextFilterAdapter <SimpleInjectorUseOptions> .Create(typeof(IUseSimpleInjectorFilter <>))),
         (ctx, o) =>
     {
         ModuleMethodInvoker.CallOptionalMethod(ctx, "UseSimpleInjector", o);
     })(moduleContext, options);
 }