diff --git a/src/SignalR/common/Http.Connections.Common/src/NegotiateProtocol.cs b/src/SignalR/common/Http.Connections.Common/src/NegotiateProtocol.cs index fb022eef544b..84848562ae77 100644 --- a/src/SignalR/common/Http.Connections.Common/src/NegotiateProtocol.cs +++ b/src/SignalR/common/Http.Connections.Common/src/NegotiateProtocol.cs @@ -258,16 +258,6 @@ public static NegotiationResponse ParseResponse(ReadOnlySpan content) } } - /// - /// - /// This method is obsolete and will be removed in a future version. - /// The recommended alternative is . - /// - /// - [Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is ParseResponse(ReadOnlySpan{byte}).")] - public static NegotiationResponse ParseResponse(Stream content) => - throw new NotSupportedException("This method is obsolete and will be removed in a future version. The recommended alternative is ParseResponse(ReadOnlySpan{byte})."); - private static AvailableTransport ParseAvailableTransport(ref Utf8JsonReader reader) { var availableTransport = new AvailableTransport(); diff --git a/src/SignalR/common/Http.Connections.Common/src/PublicAPI.Shipped.txt b/src/SignalR/common/Http.Connections.Common/src/PublicAPI.Shipped.txt index 049d88f7fa31..c83fff86a105 100644 --- a/src/SignalR/common/Http.Connections.Common/src/PublicAPI.Shipped.txt +++ b/src/SignalR/common/Http.Connections.Common/src/PublicAPI.Shipped.txt @@ -29,6 +29,5 @@ static readonly Microsoft.AspNetCore.Http.Connections.HttpTransports.All -> Micr ~Microsoft.AspNetCore.Http.Connections.NegotiationResponse.Error.set -> void ~Microsoft.AspNetCore.Http.Connections.NegotiationResponse.Url.get -> string ~Microsoft.AspNetCore.Http.Connections.NegotiationResponse.Url.set -> void -~static Microsoft.AspNetCore.Http.Connections.NegotiateProtocol.ParseResponse(System.IO.Stream content) -> Microsoft.AspNetCore.Http.Connections.NegotiationResponse ~static Microsoft.AspNetCore.Http.Connections.NegotiateProtocol.ParseResponse(System.ReadOnlySpan content) -> Microsoft.AspNetCore.Http.Connections.NegotiationResponse ~static Microsoft.AspNetCore.Http.Connections.NegotiateProtocol.WriteResponse(Microsoft.AspNetCore.Http.Connections.NegotiationResponse response, System.Buffers.IBufferWriter output) -> void diff --git a/src/SignalR/server/Core/src/HubInvocationContext.cs b/src/SignalR/server/Core/src/HubInvocationContext.cs index bd08ded07244..92207f88d5af 100644 --- a/src/SignalR/server/Core/src/HubInvocationContext.cs +++ b/src/SignalR/server/Core/src/HubInvocationContext.cs @@ -33,18 +33,6 @@ public HubInvocationContext(HubCallerContext context, IServiceProvider servicePr Context = context; } - /// - /// Instantiates a new instance of the class. - /// - /// Context for the active Hub connection and caller. - /// The name of the Hub method being invoked. - /// The arguments provided by the client. - [Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other constructor.")] - public HubInvocationContext(HubCallerContext context, string hubMethodName, object?[] hubMethodArguments) - { - throw new NotSupportedException("This constructor no longer works. Use the other constructor."); - } - internal HubInvocationContext(ObjectMethodExecutor objectMethodExecutor, HubCallerContext context, IServiceProvider serviceProvider, Hub hub, object?[] hubMethodArguments) : this(context, serviceProvider, hub, objectMethodExecutor.MethodInfo, hubMethodArguments) { diff --git a/src/SignalR/server/Core/src/PublicAPI.Shipped.txt b/src/SignalR/server/Core/src/PublicAPI.Shipped.txt index 73cb5f597e0f..056f9ff05b13 100644 --- a/src/SignalR/server/Core/src/PublicAPI.Shipped.txt +++ b/src/SignalR/server/Core/src/PublicAPI.Shipped.txt @@ -72,7 +72,6 @@ Microsoft.AspNetCore.SignalR.HubInvocationContext Microsoft.AspNetCore.SignalR.HubInvocationContext.Context.get -> Microsoft.AspNetCore.SignalR.HubCallerContext! Microsoft.AspNetCore.SignalR.HubInvocationContext.Hub.get -> Microsoft.AspNetCore.SignalR.Hub! Microsoft.AspNetCore.SignalR.HubInvocationContext.HubInvocationContext(Microsoft.AspNetCore.SignalR.HubCallerContext! context, System.IServiceProvider! serviceProvider, Microsoft.AspNetCore.SignalR.Hub! hub, System.Reflection.MethodInfo! hubMethod, System.Collections.Generic.IReadOnlyList! hubMethodArguments) -> void -Microsoft.AspNetCore.SignalR.HubInvocationContext.HubInvocationContext(Microsoft.AspNetCore.SignalR.HubCallerContext! context, string! hubMethodName, object?[]! hubMethodArguments) -> void Microsoft.AspNetCore.SignalR.HubInvocationContext.HubMethod.get -> System.Reflection.MethodInfo! Microsoft.AspNetCore.SignalR.HubInvocationContext.HubMethodArguments.get -> System.Collections.Generic.IReadOnlyList! Microsoft.AspNetCore.SignalR.HubInvocationContext.HubMethodName.get -> string!