Example #1
0
 public static BoltOnOptions BoltOnEFModule(this BoltOnOptions boltOnOptions)
 {
     boltOnOptions.BoltOnAssemblies(Assembly.GetExecutingAssembly());
     boltOnOptions.ServiceCollection.AddScoped <ChangeTrackerContext>();
     boltOnOptions.AddInterceptor <ChangeTrackerInterceptor>();
     return(boltOnOptions);
 }
Example #2
0
 public static BoltOnOptions BoltOnMassTransitBusModule(this BoltOnOptions boltOnOptions)
 {
     boltOnOptions.BoltOnAssemblies(Assembly.GetExecutingAssembly());
     boltOnOptions.ServiceCollection.AddSingleton <IBus, BoltOnMassTransitBus>();
     boltOnOptions.ServiceCollection.AddTransient(typeof(BoltOnMassTransitConsumer <>));
     return(boltOnOptions);
 }
Example #3
0
 public static BoltOnOptions BoltOnEFModule(this BoltOnOptions boltOnOptions)
 {
     boltOnOptions.BoltOnAssemblies(Assembly.GetExecutingAssembly());
     return(boltOnOptions);
 }