Commit c555b183 authored by Savorboard's avatar Savorboard

Rename CapDatabaseStorageMarkerService to CapStorageMarkerService

parent 9d3c89c6
...@@ -21,7 +21,7 @@ namespace DotNetCore.CAP.MongoDB ...@@ -21,7 +21,7 @@ namespace DotNetCore.CAP.MongoDB
public void AddServices(IServiceCollection services) public void AddServices(IServiceCollection services)
{ {
services.AddSingleton<CapDatabaseStorageMarkerService>(); services.AddSingleton<CapStorageMarkerService>();
services.AddSingleton<IStorage, MongoDBStorage>(); services.AddSingleton<IStorage, MongoDBStorage>();
services.AddSingleton<IStorageConnection, MongoDBStorageConnection>(); services.AddSingleton<IStorageConnection, MongoDBStorageConnection>();
......
...@@ -21,7 +21,7 @@ namespace DotNetCore.CAP ...@@ -21,7 +21,7 @@ namespace DotNetCore.CAP
public void AddServices(IServiceCollection services) public void AddServices(IServiceCollection services)
{ {
services.AddSingleton<CapDatabaseStorageMarkerService>(); services.AddSingleton<CapStorageMarkerService>();
services.AddSingleton<IStorage, MySqlStorage>(); services.AddSingleton<IStorage, MySqlStorage>();
services.AddSingleton<IStorageConnection, MySqlStorageConnection>(); services.AddSingleton<IStorageConnection, MySqlStorageConnection>();
......
...@@ -21,7 +21,7 @@ namespace DotNetCore.CAP ...@@ -21,7 +21,7 @@ namespace DotNetCore.CAP
public void AddServices(IServiceCollection services) public void AddServices(IServiceCollection services)
{ {
services.AddSingleton<CapDatabaseStorageMarkerService>(); services.AddSingleton<CapStorageMarkerService>();
services.AddSingleton<IStorage, PostgreSqlStorage>(); services.AddSingleton<IStorage, PostgreSqlStorage>();
services.AddSingleton<IStorageConnection, PostgreSqlStorageConnection>(); services.AddSingleton<IStorageConnection, PostgreSqlStorageConnection>();
......
...@@ -22,7 +22,7 @@ namespace DotNetCore.CAP ...@@ -22,7 +22,7 @@ namespace DotNetCore.CAP
public void AddServices(IServiceCollection services) public void AddServices(IServiceCollection services)
{ {
services.AddSingleton<CapDatabaseStorageMarkerService>(); services.AddSingleton<CapStorageMarkerService>();
services.AddSingleton<DiagnosticProcessorObserver>(); services.AddSingleton<DiagnosticProcessorObserver>();
services.AddSingleton<IStorage, SqlServerStorage>(); services.AddSingleton<IStorage, SqlServerStorage>();
services.AddSingleton<IStorageConnection, SqlServerStorageConnection>(); services.AddSingleton<IStorageConnection, SqlServerStorageConnection>();
......
...@@ -60,7 +60,7 @@ namespace Microsoft.AspNetCore.Builder ...@@ -60,7 +60,7 @@ namespace Microsoft.AspNetCore.Builder
"You must be config used message queue provider at AddCap() options! eg: services.AddCap(options=>{ options.UseKafka(...) })"); "You must be config used message queue provider at AddCap() options! eg: services.AddCap(options=>{ options.UseKafka(...) })");
} }
var databaseMarker = app.ApplicationServices.GetService<CapDatabaseStorageMarkerService>(); var databaseMarker = app.ApplicationServices.GetService<CapStorageMarkerService>();
if (databaseMarker == null) if (databaseMarker == null)
{ {
throw new InvalidOperationException( throw new InvalidOperationException(
......
...@@ -15,9 +15,9 @@ namespace DotNetCore.CAP ...@@ -15,9 +15,9 @@ namespace DotNetCore.CAP
} }
/// <summary> /// <summary>
/// Used to verify cap database storage extension was added on a ServiceCollection /// Used to verify cap storage extension was added on a ServiceCollection
/// </summary> /// </summary>
public class CapDatabaseStorageMarkerService public class CapStorageMarkerService
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment