namespace ZB.MOM.WW.MxGateway.Worker.MxAccess;

public sealed class RegisteredServerHandle
{
    /// <summary>Initializes a new registered server handle.</summary>
    /// <param name="serverHandle">MXAccess server handle.</param>
    /// <param name="clientName">Client name associated with the handle.</param>
    public RegisteredServerHandle(
        int serverHandle,
        string clientName)
    {
        ServerHandle = serverHandle;
        ClientName = clientName;
    }

    /// <summary>The MXAccess server handle.</summary>
    public int ServerHandle { get; }

    /// <summary>The client name associated with this server handle.</summary>
    public string ClientName { get; }
}
