@@ -62,14 +62,12 @@ namespace DotNetCore.CAP.MySql | |||||
_logger.LogInformation("Published Message has been persisted in the database. name:" + message); | _logger.LogInformation("Published Message has been persisted in the database. name:" + message); | ||||
} | } | ||||
protected override Task ExecuteAsync(IDbConnection dbConnection, IDbTransaction dbTransaction, | |||||
protected override async Task ExecuteAsync(IDbConnection dbConnection, IDbTransaction dbTransaction, | |||||
CapPublishedMessage message) | CapPublishedMessage message) | ||||
{ | { | ||||
dbConnection.ExecuteAsync(PrepareSql(), message, dbTransaction); | |||||
await dbConnection.ExecuteAsync(PrepareSql(), message, dbTransaction); | |||||
_logger.LogInformation("Published Message has been persisted in the database. name:" + message); | _logger.LogInformation("Published Message has been persisted in the database. name:" + message); | ||||
return Task.CompletedTask; | |||||
} | } | ||||
#region private methods | #region private methods | ||||
@@ -64,14 +64,12 @@ namespace DotNetCore.CAP.PostgreSql | |||||
_logger.LogInformation("Published Message has been persisted in the database. name:" + message); | _logger.LogInformation("Published Message has been persisted in the database. name:" + message); | ||||
} | } | ||||
protected override Task ExecuteAsync(IDbConnection dbConnection, IDbTransaction dbTransaction, | |||||
protected override async Task ExecuteAsync(IDbConnection dbConnection, IDbTransaction dbTransaction, | |||||
CapPublishedMessage message) | CapPublishedMessage message) | ||||
{ | { | ||||
dbConnection.ExecuteAsync(PrepareSql(), message, dbTransaction); | |||||
await dbConnection.ExecuteAsync(PrepareSql(), message, dbTransaction); | |||||
_logger.LogInformation("Published Message has been persisted in the database. name:" + message); | _logger.LogInformation("Published Message has been persisted in the database. name:" + message); | ||||
return Task.CompletedTask; | |||||
} | } | ||||
#region private methods | #region private methods | ||||
@@ -63,14 +63,12 @@ namespace DotNetCore.CAP.SqlServer | |||||
_logger.LogInformation("published message has been persisted to the database. name:" + message); | _logger.LogInformation("published message has been persisted to the database. name:" + message); | ||||
} | } | ||||
protected override Task ExecuteAsync(IDbConnection dbConnection, IDbTransaction dbTransaction, | |||||
protected override async Task ExecuteAsync(IDbConnection dbConnection, IDbTransaction dbTransaction, | |||||
CapPublishedMessage message) | CapPublishedMessage message) | ||||
{ | { | ||||
dbConnection.ExecuteAsync(PrepareSql(), message, dbTransaction); | |||||
await dbConnection.ExecuteAsync(PrepareSql(), message, dbTransaction); | |||||
_logger.LogInformation("published message has been persisted to the database. name:" + message); | _logger.LogInformation("published message has been persisted to the database. name:" + message); | ||||
return Task.CompletedTask; | |||||
} | } | ||||
#region private methods | #region private methods | ||||