Commit 5fe7e5b2 authored by Savorboard's avatar Savorboard

Rename the file to conform to the specification

parent 9424cfd7
...@@ -25,8 +25,8 @@ namespace DotNetCore.CAP ...@@ -25,8 +25,8 @@ namespace DotNetCore.CAP
services.AddSingleton<IStorage, MySqlStorage>(); services.AddSingleton<IStorage, MySqlStorage>();
services.AddSingleton<IStorageConnection, MySqlStorageConnection>(); services.AddSingleton<IStorageConnection, MySqlStorageConnection>();
services.AddScoped<ICapPublisher, CapPublisher>(); services.AddScoped<ICapPublisher, MySqlPublisher>();
services.AddScoped<ICallbackPublisher, CapPublisher>(); services.AddScoped<ICallbackPublisher, MySqlPublisher>();
services.AddTransient<ICollectProcessor, MySqlCollectProcessor>(); services.AddTransient<ICollectProcessor, MySqlCollectProcessor>();
services.AddTransient<CapTransactionBase, MySqlCapTransaction>(); services.AddTransient<CapTransactionBase, MySqlCapTransaction>();
......
...@@ -14,7 +14,7 @@ using MySql.Data.MySqlClient; ...@@ -14,7 +14,7 @@ using MySql.Data.MySqlClient;
namespace DotNetCore.CAP.MySql namespace DotNetCore.CAP.MySql
{ {
public class CapPublisher : CapPublisherBase, ICallbackPublisher, IDisposable public class MySqlPublisher : CapPublisherBase, ICallbackPublisher, IDisposable
{ {
private readonly DbContext _dbContext; private readonly DbContext _dbContext;
private readonly MySqlOptions _options; private readonly MySqlOptions _options;
...@@ -22,7 +22,7 @@ namespace DotNetCore.CAP.MySql ...@@ -22,7 +22,7 @@ namespace DotNetCore.CAP.MySql
private MySqlConnection _connection; private MySqlConnection _connection;
public CapPublisher(IServiceProvider provider, MySqlOptions options) : base(provider) public MySqlPublisher(IServiceProvider provider, MySqlOptions options) : base(provider)
{ {
_options = options; _options = options;
...@@ -49,7 +49,7 @@ namespace DotNetCore.CAP.MySql ...@@ -49,7 +49,7 @@ namespace DotNetCore.CAP.MySql
dbTrans = dbContextTrans.GetDbTransaction(); dbTrans = dbContextTrans.GetDbTransaction();
} }
var conn = dbTrans?.Connection; var conn = dbTrans?.Connection;
return conn.ExecuteScalarAsync<int>(PrepareSql(), message, dbTrans); return conn.ExecuteAsync(PrepareSql(), message, dbTrans);
} }
protected override object GetDbTransaction() protected override object GetDbTransaction()
......
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