Skip to content

Commit 6c333dc

Browse files
committed
Update
1 parent 37152ed commit 6c333dc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Microsoft.Azure.SignalR.Protocols/Models/GroupMemberQueryResponsePayload.cs renamed to src/Microsoft.Azure.SignalR.Protocols/Models/GroupMemberQueryResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Microsoft.Azure.SignalR.Protocol;
88

9-
public sealed class GroupMemberQueryResponsePayload : IMessagePackSerializable
9+
public sealed class GroupMemberQueryResponse : IMessagePackSerializable
1010
{
1111
/// <summary>
1212
/// The group members.

src/Microsoft.Azure.SignalR.Protocols/ServiceMessage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ public ServiceMappingMessage(string invocationId, string connectionId, string in
576576
/// <summary>
577577
/// A message to list connections in a group.
578578
/// </summary>
579-
/// <remarks>The expected response of this message is an <see cref="AckMessage"/> whose <see cref="AckMessage.Payload"/> is a serialized <see cref="GroupMemberQueryResponsePayload"/>.</remarks>
579+
/// <remarks>The expected response of this message is an <see cref="AckMessage"/> whose <see cref="AckMessage.Payload"/> is a serialized <see cref="GroupMemberQueryResponse"/>.</remarks>
580580
public class GroupMemberQueryMessage : ExtensibleServiceMessage, IAckableMessage, IMessageWithTracingId
581581
{
582582
/// <summary>
@@ -592,7 +592,7 @@ public class GroupMemberQueryMessage : ExtensibleServiceMessage, IAckableMessage
592592
/// <summary>
593593
/// The max count of connections to return.
594594
/// </summary>
595-
public int Max { get; set; }
595+
public int Max { get; set; } = 200;
596596

597597
/// <summary>
598598
/// A token to indiate the start point of results.

test/Microsoft.Azure.SignalR.Protocols.Tests/Models/GroupMemberQueryResponsePayloadTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ public void TestMessagePackSerialization()
1818
new GroupMember { ConnectionId = "conn1", UserId = "user1" },
1919
new GroupMember { ConnectionId = "conn2", UserId = "user2" }
2020
};
21-
var payload = new GroupMemberQueryResponsePayload
21+
var payload = new GroupMemberQueryResponse
2222
{
2323
Members = groupMembers,
2424
ContinuationToken = "token"
2525
};
2626
var buffer = new ArrayBufferWriter<byte>();
2727
var protocol = new ServiceProtocol();
2828
protocol.WriteMessagePayload(payload, buffer);
29-
var deserialized = protocol.ParseMessagePayload<GroupMemberQueryResponsePayload>(new
29+
var deserialized = protocol.ParseMessagePayload<GroupMemberQueryResponse>(new
3030
ReadOnlySequence<byte>(buffer.WrittenMemory));
3131
Assert.Equal(payload.ContinuationToken, deserialized.ContinuationToken);
3232
Assert.True(payload.Members.SequenceEqual(deserialized.Members));

0 commit comments

Comments
 (0)