Back to Aspnetcore

Breaking change: Obsoleted and removed APIs

aspnetcore/breaking-changes/6/obsolete-removed-apis.md

latest6.2 KB
Original Source

Obsoleted and removed APIs

Several APIs have been either removed or marked as obsolete.

Version introduced

ASP.NET Core 6.0

Old behavior

In ASP.NET Core 5.0 and previous versions, the APIs weren't removed or obsolete.

New behavior

The APIs are removed or obsoleted.

Reason for change

The APIs are either no longer used or don't function anymore.

Use the recommended replacement APIs.

Affected APIs

<!-- ## Category ASP.NET Core ## Affected APIs - `M:Microsoft.AspNetCore.Http.Connections.NegotiateProtocol.ParseResponse(System.IO.Stream)` - `M:Microsoft.AspNetCore.SignalR.HubInvocationContext.#ctor(Microsoft.AspNetCore.SignalR.HubCallerContext,System.String,System.Object[])` - `T:Microsoft.AspNetCore.Http.Features.IHttpBufferingFeature` - `T:Microsoft.AspNetCore.Http.Features.IHttpSendFileFeature` - `M:Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext.#ctor` - `M:Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor.#ctor(Microsoft.AspNetCore.Mvc.Infrastructure.OutputFormatterSelector,Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory,Microsoft.Extensions.Logging.ILoggerFactory)` - `Overload:Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor.AllowShortCircuitingValidationWhenNoValidatorsArePresent` - `M:Microsoft.AspNetCore.Mvc.ViewFeatures.ViewComponentResultExecutor.#ctor(Microsoft.Extensions.Options.IOptions{Microsoft.AspNetCore.Mvc.MvcViewOptions},Microsoft.Extensions.Logging.ILoggerFactory,System.Text.Encodings.Web.HtmlEncoder,Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider,Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory)` - `T:Microsoft.AspNetCore.Mvc.CompatibilityVersion` -->