File: Internal\RedisGroupCommand.cs
Web Access
Project: src\src\SignalR\server\StackExchangeRedis\src\Microsoft.AspNetCore.SignalR.StackExchangeRedis.csproj (Microsoft.AspNetCore.SignalR.StackExchangeRedis)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.SignalR.StackExchangeRedis.Internal;
 
internal readonly struct RedisGroupCommand
{
    /// <summary>
    /// Gets the ID of the group command.
    /// </summary>
    public int Id { get; }
 
    /// <summary>
    /// Gets the name of the server that sent the command.
    /// </summary>
    public string ServerName { get; }
 
    /// <summary>
    /// Gets the action to be performed on the group.
    /// </summary>
    public GroupAction Action { get; }
 
    /// <summary>
    /// Gets the group on which the action is performed.
    /// </summary>
    public string GroupName { get; }
 
    /// <summary>
    /// Gets the ID of the connection to be added or removed from the group.
    /// </summary>
    public string ConnectionId { get; }
 
    public RedisGroupCommand(int id, string serverName, GroupAction action, string groupName, string connectionId)
    {
        Id = id;
        ServerName = serverName;
        Action = action;
        GroupName = groupName;
        ConnectionId = connectionId;
    }
}