diff --git a/Source/EventFlow.AspNetCore/Configuration/EventFlowJsonOptionsMvcConfiguration.cs b/Source/EventFlow.AspNetCore/Configuration/EventFlowJsonOptionsMvcConfiguration.cs index 208d30579..b14b73a85 100644 --- a/Source/EventFlow.AspNetCore/Configuration/EventFlowJsonOptionsMvcConfiguration.cs +++ b/Source/EventFlow.AspNetCore/Configuration/EventFlowJsonOptionsMvcConfiguration.cs @@ -27,7 +27,13 @@ namespace EventFlow.AspNetCore.Configuration { - public class EventFlowJsonOptionsMvcConfiguration : IConfigureOptions + public class EventFlowJsonOptionsMvcConfiguration : +#if NETSTANDARD2_0 + IConfigureOptions +#endif +#if NETCOREAPP3_0 + IConfigureOptions +#endif { private readonly IJsonOptions _jsonOptions; @@ -36,9 +42,17 @@ public EventFlowJsonOptionsMvcConfiguration(IJsonOptions jsonOptions) _jsonOptions = jsonOptions; } +#if NETSTANDARD2_0 public void Configure(MvcJsonOptions options) { _jsonOptions.Apply(options.SerializerSettings); } +#endif +#if NETCOREAPP3_0 + public void Configure(MvcNewtonsoftJsonOptions options) + { + _jsonOptions.Apply(options.SerializerSettings); + } +#endif } } diff --git a/Source/EventFlow.AspNetCore/EventFlow.AspNetCore.csproj b/Source/EventFlow.AspNetCore/EventFlow.AspNetCore.csproj index 48e6891f4..0e66aed88 100644 --- a/Source/EventFlow.AspNetCore/EventFlow.AspNetCore.csproj +++ b/Source/EventFlow.AspNetCore/EventFlow.AspNetCore.csproj @@ -1,7 +1,7 @@ - + - netstandard2.0 + netstandard2.0;netcoreapp3.0 True True False @@ -21,9 +21,18 @@ UPDATED BY BUILD - + + + + + + + + + + diff --git a/Source/EventFlow.AspNetCore/Extensions/AspNetCoreEventFlowOptions.cs b/Source/EventFlow.AspNetCore/Extensions/AspNetCoreEventFlowOptions.cs index f8a05992a..751e440d9 100644 --- a/Source/EventFlow.AspNetCore/Extensions/AspNetCoreEventFlowOptions.cs +++ b/Source/EventFlow.AspNetCore/Extensions/AspNetCoreEventFlowOptions.cs @@ -93,12 +93,22 @@ public AspNetCoreEventFlowOptions AddDefaultMetadataProviders() return this; } +#if NETSTANDARD2_0 public AspNetCoreEventFlowOptions UseMvcJsonOptions() { _options.RegisterServices(s => s.Register, EventFlowJsonOptionsMvcConfiguration>()); return this; } +#endif +#if NETCOREAPP3_0 + public AspNetCoreEventFlowOptions UseMvcJsonOptions() + { + _options.RegisterServices(s => + s.Register, EventFlowJsonOptionsMvcConfiguration>()); + return this; + } +#endif public AspNetCoreEventFlowOptions UseModelBinding( Action configureModelBinding = null) diff --git a/Source/EventFlow/EventFlow.csproj b/Source/EventFlow/EventFlow.csproj index 4611babe8..aec72b24a 100644 --- a/Source/EventFlow/EventFlow.csproj +++ b/Source/EventFlow/EventFlow.csproj @@ -1,7 +1,7 @@  - net452;netstandard1.6;netstandard2.0 + net452;netstandard1.6;netstandard2.0;netcoreapp3.0 True True False diff --git a/appveyor.yml b/appveyor.yml index 4e556ea8c..5c4fc2963 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,7 +20,7 @@ environment: EVENTFLOW_MSSQL_SERVER: (local)\SQL2017 EVENTFLOW_MSSQL_USER: sa EVENTFLOW_MSSQL_PASS: Password12! - + test: off artifacts: diff --git a/up_integration-test-env.ps1 b/up_integration-test-env.ps1 index 49848afcf..ca51562d5 100644 --- a/up_integration-test-env.ps1 +++ b/up_integration-test-env.ps1 @@ -14,7 +14,7 @@ $env:ELASTICSEARCH_URL = "http://localhost:9200" # Event Store $env:EVENTSTORE_URL = "tcp://admin:changeit@localhost:1113" -# Helth check +# Health checks # Event Store curl --connect-timeout 60 --retry 5 -sL "http://localhost:2113" # Elasticsearch