|
|
@@ -20,9 +20,9 @@ namespace DotNetCore.CAP |
|
|
|
{ |
|
|
|
services.AddSingleton<CapDatabaseStorageMarkerService>(); |
|
|
|
services.AddSingleton<IStorage, PostgreSqlStorage>(); |
|
|
|
services.AddScoped<IStorageConnection, PostgreSqlStorageConnection>(); |
|
|
|
services.AddSingleton<IStorageConnection, PostgreSqlStorageConnection>(); |
|
|
|
services.AddScoped<ICapPublisher, CapPublisher>(); |
|
|
|
services.AddTransient<ICallbackPublisher, CapPublisher>(); |
|
|
|
services.AddScoped<ICallbackPublisher, CapPublisher>(); |
|
|
|
services.AddTransient<IAdditionalProcessor, DefaultAdditionalProcessor>(); |
|
|
|
|
|
|
|
var postgreSqlOptions = new PostgreSqlOptions(); |
|
|
|