Пример #1
0
 public static IWindsorContainer AddMongoDbContext <TContext>(
     this IWindsorContainer containerBuilder,
     Action <MongoDbOptionBuilder> options,
     LifestyleType contextLifestyle = LifestyleType.Scoped,
     LifestyleType optionsLifestyle = LifestyleType.Scoped)
     where TContext : MongoDbContext
 {
     containerBuilder.AddMongoDbContext <TContext>((p, b) => options.Invoke(b), contextLifestyle, optionsLifestyle);
     return(containerBuilder);
 }