Example #1
0
 public static BootstrapperOptions BoltOnCacheModule(this BootstrapperOptions bootstrapperOptions)
 {
     bootstrapperOptions.BoltOnAssemblies(Assembly.GetExecutingAssembly());
     bootstrapperOptions.ServiceCollection.AddTransient <IAppCache, AppCache>();
     bootstrapperOptions.AddInterceptor <CacheResponseInterceptor>().After <StopwatchInterceptor>();
     return(bootstrapperOptions);
 }
Example #2
0
 public static BootstrapperOptions BoltOnMassTransitBusModule(this BootstrapperOptions bootstrapperOptions)
 {
     bootstrapperOptions.BoltOnAssemblies(Assembly.GetExecutingAssembly());
     bootstrapperOptions.ServiceCollection.AddSingleton <IAppServiceBus, AppServiceBus>();
     bootstrapperOptions.ServiceCollection.AddTransient(typeof(AppMessageConsumer <>));
     return(bootstrapperOptions);
 }
Example #3
0
 public static BootstrapperOptions BoltOnMartenDbModule(this BootstrapperOptions bootstrapperOptions,
                                                        StoreOptions storeOptions)
 {
     bootstrapperOptions.BoltOnAssemblies(Assembly.GetExecutingAssembly());
     bootstrapperOptions.ServiceCollection.AddMarten(storeOptions);
     return(bootstrapperOptions);
 }
Example #4
0
 public static BootstrapperOptions BoltOnElasticsearchModule(this BootstrapperOptions bootstrapperOptions)
 {
     bootstrapperOptions.BoltOnAssemblies(Assembly.GetExecutingAssembly());
     return(bootstrapperOptions);
 }
Example #5
0
 public static BootstrapperOptions BoltOnHangfireModule(this BootstrapperOptions bootstrapperOptions)
 {
     bootstrapperOptions.BoltOnAssemblies(Assembly.GetExecutingAssembly());
     bootstrapperOptions.ServiceCollection.AddTransient <AppHangfireJobProcessor>();
     return(bootstrapperOptions);
 }
Example #6
0
 public static BootstrapperOptions BoltOnWebModule(this BootstrapperOptions bootstrapperOptions)
 {
     _isWebModuleAdded = true;
     bootstrapperOptions.BoltOnAssemblies(Assembly.GetExecutingAssembly());
     return(bootstrapperOptions);
 }