diff --git a/StackExchange.Exceptional.sln b/StackExchange.Exceptional.sln index 64f1027c..dd4240a8 100644 --- a/StackExchange.Exceptional.sln +++ b/StackExchange.Exceptional.sln @@ -64,9 +64,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StackExchange.Exceptional.M EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Samples.ConsoleNetCore", "samples\Samples.ConsoleNetCore\Samples.ConsoleNetCore.csproj", "{6CE269E1-6DC9-43A4-B6B8-683CE8A19E6A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StackExchange.Exceptional.MicrosoftDataSqlClient", "src\StackExchange.Exceptional.MicrosoftDataSqlClient\StackExchange.Exceptional.MicrosoftDataSqlClient.csproj", "{B575D666-06E5-4C5C-84CF-C9749C6D3E6B}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StackExchange.Exceptional.MicrosoftDataSql", "src\StackExchange.Exceptional.MicrosoftDataSql\StackExchange.Exceptional.MicrosoftDataSql.csproj", "{4FFED4CE-F0B8-4E9E-B7F9-684CA52F5D4F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StackExchange.Exceptional.SystemDataSqlClient", "src\StackExchange.Exceptional.SystemDataSqlClient\StackExchange.Exceptional.SystemDataSqlClient.csproj", "{DF5184E1-D8FF-4C29-BF87-991596FE30A7}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StackExchange.Exceptional.SystemDataSql", "src\StackExchange.Exceptional.SystemDataSql\StackExchange.Exceptional.SystemDataSql.csproj", "{41C614C7-2932-4ECD-B592-373BAA515031}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -122,14 +122,14 @@ Global {6CE269E1-6DC9-43A4-B6B8-683CE8A19E6A}.Debug|Any CPU.Build.0 = Debug|Any CPU {6CE269E1-6DC9-43A4-B6B8-683CE8A19E6A}.Release|Any CPU.ActiveCfg = Release|Any CPU {6CE269E1-6DC9-43A4-B6B8-683CE8A19E6A}.Release|Any CPU.Build.0 = Release|Any CPU - {B575D666-06E5-4C5C-84CF-C9749C6D3E6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B575D666-06E5-4C5C-84CF-C9749C6D3E6B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B575D666-06E5-4C5C-84CF-C9749C6D3E6B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B575D666-06E5-4C5C-84CF-C9749C6D3E6B}.Release|Any CPU.Build.0 = Release|Any CPU - {DF5184E1-D8FF-4C29-BF87-991596FE30A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DF5184E1-D8FF-4C29-BF87-991596FE30A7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DF5184E1-D8FF-4C29-BF87-991596FE30A7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DF5184E1-D8FF-4C29-BF87-991596FE30A7}.Release|Any CPU.Build.0 = Release|Any CPU + {4FFED4CE-F0B8-4E9E-B7F9-684CA52F5D4F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4FFED4CE-F0B8-4E9E-B7F9-684CA52F5D4F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4FFED4CE-F0B8-4E9E-B7F9-684CA52F5D4F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4FFED4CE-F0B8-4E9E-B7F9-684CA52F5D4F}.Release|Any CPU.Build.0 = Release|Any CPU + {41C614C7-2932-4ECD-B592-373BAA515031}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {41C614C7-2932-4ECD-B592-373BAA515031}.Debug|Any CPU.Build.0 = Debug|Any CPU + {41C614C7-2932-4ECD-B592-373BAA515031}.Release|Any CPU.ActiveCfg = Release|Any CPU + {41C614C7-2932-4ECD-B592-373BAA515031}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -147,8 +147,8 @@ Global {0A412433-C2CE-4EBE-BB5A-C3E48983E941} = {8B91532F-A112-4F73-80BD-A95B7359BBC3} {8CFA59A5-5180-4466-A32E-507F3D541163} = {8B91532F-A112-4F73-80BD-A95B7359BBC3} {6CE269E1-6DC9-43A4-B6B8-683CE8A19E6A} = {001E5AA4-42C8-4AC3-B14A-AF1DFA02E9FB} - {B575D666-06E5-4C5C-84CF-C9749C6D3E6B} = {8B91532F-A112-4F73-80BD-A95B7359BBC3} - {DF5184E1-D8FF-4C29-BF87-991596FE30A7} = {8B91532F-A112-4F73-80BD-A95B7359BBC3} + {4FFED4CE-F0B8-4E9E-B7F9-684CA52F5D4F} = {8B91532F-A112-4F73-80BD-A95B7359BBC3} + {41C614C7-2932-4ECD-B592-373BAA515031} = {8B91532F-A112-4F73-80BD-A95B7359BBC3} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {7F066A86-14D8-4A2C-848A-D4371BB704FA} diff --git a/src/StackExchange.Exceptional.MicrosoftDataSqlClient/StackExchange.Exceptional.MicrosoftDataSqlClient.csproj b/src/StackExchange.Exceptional.MicrosoftDataSql/StackExchange.Exceptional.MicrosoftDataSql.csproj similarity index 87% rename from src/StackExchange.Exceptional.MicrosoftDataSqlClient/StackExchange.Exceptional.MicrosoftDataSqlClient.csproj rename to src/StackExchange.Exceptional.MicrosoftDataSql/StackExchange.Exceptional.MicrosoftDataSql.csproj index 3c9f8e52..d07d4848 100644 --- a/src/StackExchange.Exceptional.MicrosoftDataSqlClient/StackExchange.Exceptional.MicrosoftDataSqlClient.csproj +++ b/src/StackExchange.Exceptional.MicrosoftDataSql/StackExchange.Exceptional.MicrosoftDataSql.csproj @@ -1,7 +1,7 @@  - StackExchange.Exceptional.MicrosoftDataSqlClient + StackExchange.Exceptional.MicrosoftDataSql Microsoft.Data.SqlClient storage provider for StackExchange.Exceptional net462;netstandard2.0 StackExchange.Exceptional diff --git a/src/StackExchange.Exceptional.MicrosoftDataSqlClient/Stores/SQLErrorStore.cs b/src/StackExchange.Exceptional.MicrosoftDataSql/Stores/MicrosoftDataSQLErrorStore.cs similarity index 96% rename from src/StackExchange.Exceptional.MicrosoftDataSqlClient/Stores/SQLErrorStore.cs rename to src/StackExchange.Exceptional.MicrosoftDataSql/Stores/MicrosoftDataSQLErrorStore.cs index 100e6ca6..fff7fd27 100644 --- a/src/StackExchange.Exceptional.MicrosoftDataSqlClient/Stores/SQLErrorStore.cs +++ b/src/StackExchange.Exceptional.MicrosoftDataSql/Stores/MicrosoftDataSQLErrorStore.cs @@ -11,7 +11,7 @@ namespace StackExchange.Exceptional.Stores /// /// An implementation that uses SQL Server as its backing store. /// - public sealed class SQLErrorStore : ErrorStore + public sealed class MicrosoftDataSQLErrorStore : ErrorStore { /// /// Name for this error store. @@ -28,12 +28,12 @@ public sealed class SQLErrorStore : ErrorStore public const int MaximumDisplayCount = 500; /// - /// Creates a new instance of with the specified connection string. + /// Creates a new instance of with the specified connection string. /// The default table name is "Exceptions". /// /// The database connection string to use. /// The application name to use when logging. - public SQLErrorStore(string connectionString, string applicationName) + public MicrosoftDataSQLErrorStore(string connectionString, string applicationName) : this(new ErrorStoreSettings() { ApplicationName = applicationName, @@ -42,11 +42,11 @@ public SQLErrorStore(string connectionString, string applicationName) { } /// - /// Creates a new instance of with the given configuration. + /// Creates a new instance of with the given configuration. /// The default table name is "Exceptions". /// /// The for this store. - public SQLErrorStore(ErrorStoreSettings settings) : base(settings) + public MicrosoftDataSQLErrorStore(ErrorStoreSettings settings) : base(settings) { _displayCount = Math.Min(settings.Size, MaximumDisplayCount); _connectionString = settings.ConnectionString; @@ -346,7 +346,7 @@ protected override async Task GetErrorCountAsync(DateTime? since = null, st private SqlConnection GetConnection() => new(_connectionString); - static SQLErrorStore() + static MicrosoftDataSQLErrorStore() { Statics.Settings.ExceptionActions .AddHandler((e, se) => diff --git a/src/StackExchange.Exceptional.SystemDataSqlClient/StackExchange.Exceptional.SystemDataSqlClient.csproj b/src/StackExchange.Exceptional.SystemDataSql/StackExchange.Exceptional.SystemDataSql.csproj similarity index 87% rename from src/StackExchange.Exceptional.SystemDataSqlClient/StackExchange.Exceptional.SystemDataSqlClient.csproj rename to src/StackExchange.Exceptional.SystemDataSql/StackExchange.Exceptional.SystemDataSql.csproj index 682b00e7..f79ea613 100644 --- a/src/StackExchange.Exceptional.SystemDataSqlClient/StackExchange.Exceptional.SystemDataSqlClient.csproj +++ b/src/StackExchange.Exceptional.SystemDataSql/StackExchange.Exceptional.SystemDataSql.csproj @@ -1,7 +1,7 @@  - StackExchange.Exceptional.SystemDataSqlClient + StackExchange.Exceptional.SystemDataSql System.Data.SqlClient storage provider for StackExchange.Exceptional net462;netstandard2.0 StackExchange.Exceptional diff --git a/src/StackExchange.Exceptional.SystemDataSqlClient/Stores/SQLErrorStore.cs b/src/StackExchange.Exceptional.SystemDataSql/Stores/SystemDataSQLErrorStore.cs similarity index 96% rename from src/StackExchange.Exceptional.SystemDataSqlClient/Stores/SQLErrorStore.cs rename to src/StackExchange.Exceptional.SystemDataSql/Stores/SystemDataSQLErrorStore.cs index ec3f256d..a6c2c4f7 100644 --- a/src/StackExchange.Exceptional.SystemDataSqlClient/Stores/SQLErrorStore.cs +++ b/src/StackExchange.Exceptional.SystemDataSql/Stores/SystemDataSQLErrorStore.cs @@ -11,7 +11,7 @@ namespace StackExchange.Exceptional.Stores /// /// An implementation that uses SQL Server as its backing store. /// - public sealed class SQLErrorStore : ErrorStore + public sealed class SystemDataSQLErrorStore : ErrorStore { /// /// Name for this error store. @@ -28,12 +28,12 @@ public sealed class SQLErrorStore : ErrorStore public const int MaximumDisplayCount = 500; /// - /// Creates a new instance of with the specified connection string. + /// Creates a new instance of with the specified connection string. /// The default table name is "Exceptions". /// /// The database connection string to use. /// The application name to use when logging. - public SQLErrorStore(string connectionString, string applicationName) + public SystemDataSQLErrorStore(string connectionString, string applicationName) : this(new ErrorStoreSettings() { ApplicationName = applicationName, @@ -42,11 +42,11 @@ public SQLErrorStore(string connectionString, string applicationName) { } /// - /// Creates a new instance of with the given configuration. + /// Creates a new instance of with the given configuration. /// The default table name is "Exceptions". /// /// The for this store. - public SQLErrorStore(ErrorStoreSettings settings) : base(settings) + public SystemDataSQLErrorStore(ErrorStoreSettings settings) : base(settings) { _displayCount = Math.Min(settings.Size, MaximumDisplayCount); _connectionString = settings.ConnectionString; @@ -346,7 +346,7 @@ protected override async Task GetErrorCountAsync(DateTime? since = null, st private SqlConnection GetConnection() => new(_connectionString); - static SQLErrorStore() + static SystemDataSQLErrorStore() { Statics.Settings.ExceptionActions .AddHandler((e, se) => diff --git a/tests/StackExchange.Exceptional.Tests.AspNetCore/Configuration.cs b/tests/StackExchange.Exceptional.Tests.AspNetCore/Configuration.cs index bc133d9b..59be9f3c 100644 --- a/tests/StackExchange.Exceptional.Tests.AspNetCore/Configuration.cs +++ b/tests/StackExchange.Exceptional.Tests.AspNetCore/Configuration.cs @@ -124,8 +124,8 @@ public void SQLStorage() Assert.Equal("Server=.;Database=Local.Exceptions;Trusted_Connection=True;", settings.Store.ConnectionString); Assert.Equal("MyExceptions", settings.Store.TableName); - Assert.IsType(settings.DefaultStore); - var sqlStore = settings.DefaultStore as SQLErrorStore; + Assert.IsType(settings.DefaultStore); + var sqlStore = settings.DefaultStore as MicrosoftDataSQLErrorStore; Assert.Equal("Samples (ASP.NET Core SQL)", sqlStore.ApplicationName); } diff --git a/tests/StackExchange.Exceptional.Tests.AspNetCore/StaticConfiguration.cs b/tests/StackExchange.Exceptional.Tests.AspNetCore/StaticConfiguration.cs index d4002712..6f0eb58b 100644 --- a/tests/StackExchange.Exceptional.Tests.AspNetCore/StaticConfiguration.cs +++ b/tests/StackExchange.Exceptional.Tests.AspNetCore/StaticConfiguration.cs @@ -20,7 +20,7 @@ public void AppNameViaConfigure() } const string appName = "AppNameViaConfig"; - Exceptional.Configure(settings => settings.DefaultStore = new SQLErrorStore(TestConfig.Current.SQLServerConnectionString, appName)); + Exceptional.Configure(settings => settings.DefaultStore = new MicrosoftDataSQLErrorStore(TestConfig.Current.SQLServerConnectionString, appName)); Assert.Equal(appName, Exceptional.Settings.DefaultStore.ApplicationName); Assert.Equal(appName, Statics.Settings.DefaultStore.ApplicationName); diff --git a/tests/StackExchange.Exceptional.Tests/StackExchange.Exceptional.Tests.csproj b/tests/StackExchange.Exceptional.Tests/StackExchange.Exceptional.Tests.csproj index aee4b750..64e31ed5 100644 --- a/tests/StackExchange.Exceptional.Tests/StackExchange.Exceptional.Tests.csproj +++ b/tests/StackExchange.Exceptional.Tests/StackExchange.Exceptional.Tests.csproj @@ -4,13 +4,13 @@ StackExchange.Exceptional.Tests false - + - - + + - + diff --git a/tests/StackExchange.Exceptional.Tests/Storage/SQLErrorStoreTest.cs b/tests/StackExchange.Exceptional.Tests/Storage/MicrosoftDataSQLErrorStoreTest.cs similarity index 88% rename from tests/StackExchange.Exceptional.Tests/Storage/SQLErrorStoreTest.cs rename to tests/StackExchange.Exceptional.Tests/Storage/MicrosoftDataSQLErrorStoreTest.cs index dc293a5b..29866517 100644 --- a/tests/StackExchange.Exceptional.Tests/Storage/SQLErrorStoreTest.cs +++ b/tests/StackExchange.Exceptional.Tests/Storage/MicrosoftDataSQLErrorStoreTest.cs @@ -9,12 +9,12 @@ namespace StackExchange.Exceptional.Tests.Storage { - public class SQLErrorStoreTest : StoreBaseTest, IClassFixture + public class MicrosoftDataSQLErrorStoreTest : StoreBaseTest, IClassFixture { public string ConnectionString => TestConfig.Current.SQLServerConnectionString; private SqlFixture Fixture { get; } - public SQLErrorStoreTest(SqlFixture fixture, ITestOutputHelper output) : base(output) + public MicrosoftDataSQLErrorStoreTest(SqlFixture fixture, ITestOutputHelper output) : base(output) { Fixture = fixture; if (Fixture.ShouldSkip) @@ -24,7 +24,7 @@ public SQLErrorStoreTest(SqlFixture fixture, ITestOutputHelper output) : base(ou } protected override ErrorStore GetStore([CallerMemberName]string appName = null) => - new SQLErrorStore(new ErrorStoreSettings + new MicrosoftDataSQLErrorStore(new ErrorStoreSettings { ConnectionString = ConnectionString, ApplicationName = appName, @@ -35,7 +35,7 @@ protected override ErrorStore GetStore([CallerMemberName]string appName = null) public void StoreName() { const string appName = "TestNameBlarghy"; - var store = new SQLErrorStore("Server=.;Trusted_Connection=True;", appName); + var store = new MicrosoftDataSQLErrorStore("Server=.;Trusted_Connection=True;", appName); Assert.Equal(appName, store.ApplicationName); Statics.Settings = new TestSettings(store);