示例#1
0
 public static IWindsorContainer AddCosmosDbContext <TContext>(
     this IWindsorContainer containerBuilder,
     Action <CosmosDbOptionBuilder> options,
     LifestyleType contextLifestyle = LifestyleType.Scoped,
     LifestyleType optionsLifestyle = LifestyleType.Scoped)
     where TContext : CosmosDbContext
 {
     containerBuilder.AddCosmosDbContext <TContext>((p, b) => options.Invoke(b), contextLifestyle, optionsLifestyle);
     return(containerBuilder);
 }