Browse Source

Rename CapDatabaseStorageMarkerService to CapStorageMarkerService

master
Savorboard 5 years ago
parent
commit
c555b18356
6 changed files with 7 additions and 7 deletions
  1. +1
    -1
      src/DotNetCore.CAP.MongoDB/CAP.MongoDBCapOptionsExtension.cs
  2. +1
    -1
      src/DotNetCore.CAP.MySql/CAP.MySqlCapOptionsExtension.cs
  3. +1
    -1
      src/DotNetCore.CAP.PostgreSql/CAP.PostgreSqlCapOptionsExtension.cs
  4. +1
    -1
      src/DotNetCore.CAP.SqlServer/CAP.SqlServerCapOptionsExtension.cs
  5. +1
    -1
      src/DotNetCore.CAP/CAP.AppBuilderExtensions.cs
  6. +2
    -2
      src/DotNetCore.CAP/CAP.Builder.cs

+ 1
- 1
src/DotNetCore.CAP.MongoDB/CAP.MongoDBCapOptionsExtension.cs View File

@@ -21,7 +21,7 @@ namespace DotNetCore.CAP.MongoDB

public void AddServices(IServiceCollection services)
{
services.AddSingleton<CapDatabaseStorageMarkerService>();
services.AddSingleton<CapStorageMarkerService>();
services.AddSingleton<IStorage, MongoDBStorage>();
services.AddSingleton<IStorageConnection, MongoDBStorageConnection>();



+ 1
- 1
src/DotNetCore.CAP.MySql/CAP.MySqlCapOptionsExtension.cs View File

@@ -21,7 +21,7 @@ namespace DotNetCore.CAP

public void AddServices(IServiceCollection services)
{
services.AddSingleton<CapDatabaseStorageMarkerService>();
services.AddSingleton<CapStorageMarkerService>();
services.AddSingleton<IStorage, MySqlStorage>();
services.AddSingleton<IStorageConnection, MySqlStorageConnection>();



+ 1
- 1
src/DotNetCore.CAP.PostgreSql/CAP.PostgreSqlCapOptionsExtension.cs View File

@@ -21,7 +21,7 @@ namespace DotNetCore.CAP

public void AddServices(IServiceCollection services)
{
services.AddSingleton<CapDatabaseStorageMarkerService>();
services.AddSingleton<CapStorageMarkerService>();
services.AddSingleton<IStorage, PostgreSqlStorage>();
services.AddSingleton<IStorageConnection, PostgreSqlStorageConnection>();



+ 1
- 1
src/DotNetCore.CAP.SqlServer/CAP.SqlServerCapOptionsExtension.cs View File

@@ -22,7 +22,7 @@ namespace DotNetCore.CAP

public void AddServices(IServiceCollection services)
{
services.AddSingleton<CapDatabaseStorageMarkerService>();
services.AddSingleton<CapStorageMarkerService>();
services.AddSingleton<DiagnosticProcessorObserver>();
services.AddSingleton<IStorage, SqlServerStorage>();
services.AddSingleton<IStorageConnection, SqlServerStorageConnection>();


+ 1
- 1
src/DotNetCore.CAP/CAP.AppBuilderExtensions.cs View File

@@ -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(...) })");
}

var databaseMarker = app.ApplicationServices.GetService<CapDatabaseStorageMarkerService>();
var databaseMarker = app.ApplicationServices.GetService<CapStorageMarkerService>();
if (databaseMarker == null)
{
throw new InvalidOperationException(


+ 2
- 2
src/DotNetCore.CAP/CAP.Builder.cs View File

@@ -15,9 +15,9 @@ namespace DotNetCore.CAP
}

/// <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>
public class CapDatabaseStorageMarkerService
public class CapStorageMarkerService
{
}



Loading…
Cancel
Save