diff --git a/src/Microsoft.AspNetCore.OData/Formatter/Serialization/ODataDeltaResourceSetSerializer.cs b/src/Microsoft.AspNetCore.OData/Formatter/Serialization/ODataDeltaResourceSetSerializer.cs index 89e3cbd1..5dabecb1 100644 --- a/src/Microsoft.AspNetCore.OData/Formatter/Serialization/ODataDeltaResourceSetSerializer.cs +++ b/src/Microsoft.AspNetCore.OData/Formatter/Serialization/ODataDeltaResourceSetSerializer.cs @@ -166,7 +166,9 @@ private async Task WriteDeltaResourceSetAsync(IEnumerable enumerable, IEdmTypeRe // hack. if the WriteDeltaDeletedResourceAsync isn't overridden, call the new version if (WriteDeltaDeletedResourceAsyncIsOverridden()) { +#pragma warning disable CS0618 // Type or member is obsolete await WriteDeltaDeletedResourceAsync(item, writer, writeContext).ConfigureAwait(false); +#pragma warning restore CS0618 // Type or member is obsolete } else { diff --git a/src/Microsoft.AspNetCore.OData/PublicAPI.Shipped.txt b/src/Microsoft.AspNetCore.OData/PublicAPI.Shipped.txt index e4d8d3c7..a186cc3a 100644 --- a/src/Microsoft.AspNetCore.OData/PublicAPI.Shipped.txt +++ b/src/Microsoft.AspNetCore.OData/PublicAPI.Shipped.txt @@ -2065,3 +2065,6 @@ virtual Microsoft.AspNetCore.OData.Routing.Conventions.SingletonRoutingConventio virtual Microsoft.AspNetCore.OData.Routing.Conventions.SingletonRoutingConvention.Order.get -> int virtual Microsoft.AspNetCore.OData.Routing.Parser.DefaultODataPathTemplateParser.Parse(Microsoft.OData.Edm.IEdmModel model, string odataPath, System.IServiceProvider requestProvider) -> Microsoft.AspNetCore.OData.Routing.Template.ODataPathTemplate virtual Microsoft.AspNetCore.OData.Routing.Template.ODataPathTemplate.GetTemplates(Microsoft.AspNetCore.OData.Routing.ODataRouteOptions options = null) -> System.Collections.Generic.IEnumerable +virtual Microsoft.AspNetCore.OData.Formatter.Serialization.ODataDeltaResourceSetSerializer.WriteDeletedResourceAsync(object value, Microsoft.OData.Edm.IEdmStructuredTypeReference expectedType, Microsoft.OData.ODataWriter writer, Microsoft.AspNetCore.OData.Formatter.Serialization.ODataSerializerContext writeContext) -> System.Threading.Tasks.Task +virtual Microsoft.AspNetCore.OData.Formatter.Serialization.ODataResourceSerializer.CreateDeletedResource(System.Uri id, Microsoft.OData.DeltaDeletedEntryReason reason, Microsoft.AspNetCore.OData.Formatter.Serialization.SelectExpandNode selectExpandNode, Microsoft.AspNetCore.OData.Formatter.ResourceContext resourceContext) -> Microsoft.OData.ODataDeletedResource + diff --git a/src/Microsoft.AspNetCore.OData/PublicAPI.Unshipped.txt b/src/Microsoft.AspNetCore.OData/PublicAPI.Unshipped.txt index 4c81f0c7..e69de29b 100644 --- a/src/Microsoft.AspNetCore.OData/PublicAPI.Unshipped.txt +++ b/src/Microsoft.AspNetCore.OData/PublicAPI.Unshipped.txt @@ -1,2 +0,0 @@ -virtual Microsoft.AspNetCore.OData.Formatter.Serialization.ODataDeltaResourceSetSerializer.WriteDeletedResourceAsync(object value, Microsoft.OData.Edm.IEdmStructuredTypeReference expectedType, Microsoft.OData.ODataWriter writer, Microsoft.AspNetCore.OData.Formatter.Serialization.ODataSerializerContext writeContext) -> System.Threading.Tasks.Task -virtual Microsoft.AspNetCore.OData.Formatter.Serialization.ODataResourceSerializer.CreateDeletedResource(System.Uri id, Microsoft.OData.DeltaDeletedEntryReason reason, Microsoft.AspNetCore.OData.Formatter.Serialization.SelectExpandNode selectExpandNode, Microsoft.AspNetCore.OData.Formatter.ResourceContext resourceContext) -> Microsoft.OData.ODataDeletedResource \ No newline at end of file diff --git a/tool/builder.versions.settings.targets b/tool/builder.versions.settings.targets index 881fddf6..74387234 100644 --- a/tool/builder.versions.settings.targets +++ b/tool/builder.versions.settings.targets @@ -3,7 +3,7 @@ 9 1 - 1 + 2