Skip to content

Commit 5467bd5

Browse files
[SignalR] Remove obsolete APIs (#28100)
1 parent 0c705a0 commit 5467bd5

File tree

4 files changed

+0
-24
lines changed

4 files changed

+0
-24
lines changed

src/SignalR/common/Http.Connections.Common/src/NegotiateProtocol.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,16 +258,6 @@ public static NegotiationResponse ParseResponse(ReadOnlySpan<byte> content)
258258
}
259259
}
260260

261-
/// <summary>
262-
/// <para>
263-
/// This method is obsolete and will be removed in a future version.
264-
/// The recommended alternative is <see cref="ParseResponse(ReadOnlySpan{byte})" />.
265-
/// </para>
266-
/// </summary>
267-
[Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is ParseResponse(ReadOnlySpan{byte}).")]
268-
public static NegotiationResponse ParseResponse(Stream content) =>
269-
throw new NotSupportedException("This method is obsolete and will be removed in a future version. The recommended alternative is ParseResponse(ReadOnlySpan{byte}).");
270-
271261
private static AvailableTransport ParseAvailableTransport(ref Utf8JsonReader reader)
272262
{
273263
var availableTransport = new AvailableTransport();

src/SignalR/common/Http.Connections.Common/src/PublicAPI.Shipped.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ static readonly Microsoft.AspNetCore.Http.Connections.HttpTransports.All -> Micr
2929
~Microsoft.AspNetCore.Http.Connections.NegotiationResponse.Error.set -> void
3030
~Microsoft.AspNetCore.Http.Connections.NegotiationResponse.Url.get -> string
3131
~Microsoft.AspNetCore.Http.Connections.NegotiationResponse.Url.set -> void
32-
~static Microsoft.AspNetCore.Http.Connections.NegotiateProtocol.ParseResponse(System.IO.Stream content) -> Microsoft.AspNetCore.Http.Connections.NegotiationResponse
3332
~static Microsoft.AspNetCore.Http.Connections.NegotiateProtocol.ParseResponse(System.ReadOnlySpan<byte> content) -> Microsoft.AspNetCore.Http.Connections.NegotiationResponse
3433
~static Microsoft.AspNetCore.Http.Connections.NegotiateProtocol.WriteResponse(Microsoft.AspNetCore.Http.Connections.NegotiationResponse response, System.Buffers.IBufferWriter<byte> output) -> void

src/SignalR/server/Core/src/HubInvocationContext.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@ public HubInvocationContext(HubCallerContext context, IServiceProvider servicePr
3333
Context = context;
3434
}
3535

36-
/// <summary>
37-
/// Instantiates a new instance of the <see cref="HubInvocationContext"/> class.
38-
/// </summary>
39-
/// <param name="context">Context for the active Hub connection and caller.</param>
40-
/// <param name="hubMethodName">The name of the Hub method being invoked.</param>
41-
/// <param name="hubMethodArguments">The arguments provided by the client.</param>
42-
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other constructor.")]
43-
public HubInvocationContext(HubCallerContext context, string hubMethodName, object?[] hubMethodArguments)
44-
{
45-
throw new NotSupportedException("This constructor no longer works. Use the other constructor.");
46-
}
47-
4836
internal HubInvocationContext(ObjectMethodExecutor objectMethodExecutor, HubCallerContext context, IServiceProvider serviceProvider, Hub hub, object?[] hubMethodArguments)
4937
: this(context, serviceProvider, hub, objectMethodExecutor.MethodInfo, hubMethodArguments)
5038
{

src/SignalR/server/Core/src/PublicAPI.Shipped.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ Microsoft.AspNetCore.SignalR.HubInvocationContext
7272
Microsoft.AspNetCore.SignalR.HubInvocationContext.Context.get -> Microsoft.AspNetCore.SignalR.HubCallerContext!
7373
Microsoft.AspNetCore.SignalR.HubInvocationContext.Hub.get -> Microsoft.AspNetCore.SignalR.Hub!
7474
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<object?>! hubMethodArguments) -> void
75-
Microsoft.AspNetCore.SignalR.HubInvocationContext.HubInvocationContext(Microsoft.AspNetCore.SignalR.HubCallerContext! context, string! hubMethodName, object?[]! hubMethodArguments) -> void
7675
Microsoft.AspNetCore.SignalR.HubInvocationContext.HubMethod.get -> System.Reflection.MethodInfo!
7776
Microsoft.AspNetCore.SignalR.HubInvocationContext.HubMethodArguments.get -> System.Collections.Generic.IReadOnlyList<object?>!
7877
Microsoft.AspNetCore.SignalR.HubInvocationContext.HubMethodName.get -> string!

0 commit comments

Comments
 (0)