8 types derived from HubMessage
Microsoft.AspNetCore.SignalR.Common (8)
Protocol\AckMessage.cs (1)
9
public sealed class AckMessage :
HubMessage
Protocol\CloseMessage.cs (1)
12
public class CloseMessage :
HubMessage
Protocol\HandshakeRequestMessage.cs (1)
9
public class HandshakeRequestMessage :
HubMessage
Protocol\HandshakeResponseMessage.cs (1)
9
public class HandshakeResponseMessage :
HubMessage
Protocol\HubInvocationMessage.cs (1)
11
public abstract class HubInvocationMessage :
HubMessage
Protocol\PingMessage.cs (1)
9
public class PingMessage :
HubMessage
Protocol\SequenceMessage.cs (1)
9
public sealed class SequenceMessage :
HubMessage
Protocol\StreamBindingFailureMessage.cs (1)
17
public class StreamBindingFailureMessage :
HubMessage
53 references to HubMessage
Microsoft.AspNetCore.Components.Server (11)
BlazorPack\BlazorPackHubProtocol.cs (3)
39
public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, out
HubMessage
message)
43
public void WriteMessage(
HubMessage
message, IBufferWriter<byte> output)
47
public ReadOnlyMemory<byte> GetMessageBytes(
HubMessage
message)
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (8)
28
public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out
HubMessage
? message)
41
private
HubMessage
? ParseMessage(ref MessagePackReader reader, IInvocationBinder binder)
73
private
HubMessage
CreateInvocationMessage(ref MessagePackReader reader, IInvocationBinder binder, int itemCount)
109
private
HubMessage
CreateStreamInvocationMessage(ref MessagePackReader reader, IInvocationBinder binder, int itemCount)
139
private
HubMessage
CreateStreamItemMessage(ref MessagePackReader reader, IInvocationBinder binder)
335
public void WriteMessage(
HubMessage
message, IBufferWriter<byte> output)
357
public ReadOnlyMemory<byte> GetMessageBytes(
HubMessage
message)
387
private void WriteMessageCore(
HubMessage
message, ref MessagePackWriter writer)
Microsoft.AspNetCore.SignalR.Common (9)
Protocol\HubProtocolExtensions.cs (2)
14
/// Converts the specified <see cref="
HubMessage
"/> to its serialized representation.
19
public static byte[] GetMessageBytes(this IHubProtocol hubProtocol,
HubMessage
message)
Protocol\IHubProtocol.cs (7)
32
/// Creates a new <see cref="
HubMessage
"/> from the specified serialized representation, and using the specified binder.
37
/// <returns>A value that is <c>true</c> if the <see cref="
HubMessage
"/> was successfully parsed; otherwise, <c>false</c>.</returns>
38
bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out
HubMessage
? message);
41
/// Writes the specified <see cref="
HubMessage
"/> to a writer.
45
void WriteMessage(
HubMessage
message, IBufferWriter<byte> output);
48
/// Converts the specified <see cref="
HubMessage
"/> to its serialized representation.
52
ReadOnlyMemory<byte> GetMessageBytes(
HubMessage
message);
Microsoft.AspNetCore.SignalR.Core (20)
DefaultHubLifetimeManager.cs (2)
196
var
message = CreateInvocationMessage(methodName, args);
280
private static
HubMessage
CreateInvocationMessage(string methodName, object?[] args)
HubConnectionContext.cs (8)
175
/// Write a <see cref="
HubMessage
"/> to the connection.
177
/// <param name="message">The <see cref="
HubMessage
"/> being written.</param>
181
public virtual ValueTask WriteAsync(
HubMessage
message, CancellationToken cancellationToken = default)
186
internal ValueTask WriteAsync(
HubMessage
message, bool ignoreAbort, CancellationToken cancellationToken = default)
268
private ValueTask<FlushResult> WriteCore(
HubMessage
message, CancellationToken cancellationToken)
277
HubMessage
message, CancellationToken cancellationToken)
375
private async Task WriteSlowAsync(
HubMessage
message, bool ignoreAbort, CancellationToken cancellationToken)
839
internal bool ShouldProcessMessage(
HubMessage
message)
HubConnectionHandler.cs (2)
289
while (protocol.TryParseMessage(ref buffer, binder, out
var
message))
318
if (protocol.TryParseMessage(ref segment, binder, out
var
message))
Internal\DefaultHubDispatcher.cs (1)
154
public override Task DispatchMessageAsync(HubConnectionContext connection,
HubMessage
hubMessage)
Internal\HubDispatcher.cs (1)
13
public abstract Task DispatchMessageAsync(HubConnectionContext connection,
HubMessage
hubMessage);
SerializedHubMessage.cs (4)
22
public
HubMessage
? Message { get; }
42
public SerializedHubMessage(
HubMessage
message)
50
/// Gets the serialized representation of the <see cref="
HubMessage
"/> using the specified <see cref="IHubProtocol"/>.
53
/// <returns>The serialized representation of the <see cref="
HubMessage
"/>.</returns>
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (2)
129
public ValueTask<FlushResult> WriteAsync(
HubMessage
hubMessage, CancellationToken cancellationToken)
218
internal bool ShouldProcessMessage(
HubMessage
message)
Microsoft.AspNetCore.SignalR.Protocols.Json (13)
Protocol\JsonHubProtocol.cs (13)
89
public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out
HubMessage
? message)
103
public void WriteMessage(
HubMessage
message, IBufferWriter<byte> output)
110
public ReadOnlyMemory<byte> GetMessageBytes(
HubMessage
message)
115
private
HubMessage
? ParseMessage(ReadOnlySequence<byte> input, IInvocationBinder binder)
348
HubMessage
message;
516
private void WriteMessageCore(
HubMessage
message, IBufferWriter<byte> stream)
728
private static
HubMessage
BindCancelInvocationMessage(string? invocationId)
738
private static
HubMessage
BindCompletionMessage(string invocationId, string? error, object? result, bool hasResult)
758
private static
HubMessage
BindStreamItemMessage(string invocationId, object? item, bool hasItem)
773
private static
HubMessage
BindStreamInvocationMessage(string? invocationId, string target,
796
private static
HubMessage
BindInvocationMessage(string? invocationId, string target,
904
private static
HubMessage
ApplyHeaders(
HubMessage
message, Dictionary<string, string>? headers)