From fb0b4e583e658fb18ac0e1c8b55f27c9ea687c8f Mon Sep 17 00:00:00 2001 From: Savorboard Date: Mon, 16 Dec 2019 15:37:38 +0800 Subject: [PATCH] Support netstandard 2.0 and netstandard 2.1 for mysql storage --- src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj | 2 +- test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs | 2 +- test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj b/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj index 53978d8..6ba6e21 100644 --- a/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj +++ b/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj @@ -1,7 +1,7 @@  - netstandard2.0 + netstandard2.0;netstandard2.1 DotNetCore.CAP.MySql $(PackageTags);MySQL diff --git a/test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs b/test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs index fec2706..eca9b01 100644 --- a/test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs +++ b/test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs @@ -38,7 +38,7 @@ namespace DotNetCore.CAP.MySql.Test public static MySqlConnection CreateConnection(string connectionString = null) { - connectionString = connectionString ?? GetConnectionString(); + connectionString ??= GetConnectionString(); var connection = new MySqlConnection(connectionString); connection.Open(); return connection; diff --git a/test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs b/test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs index 8d3be8a..90f7317 100644 --- a/test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs +++ b/test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs @@ -34,7 +34,7 @@ namespace DotNetCore.CAP.MySql.Test var storage = GetService(); var token = new CancellationTokenSource().Token; CreateDatabase(); - storage.InitializeAsync(token); + storage.InitializeAsync(token).GetAwaiter().GetResult(); _sqlObjectInstalled = true; } }