HeartbeatResult

Namespace: Babel.Licensing Assembly: Babel.Licensing.dll

Represents the result of a heartbeat operation.

public class HeartbeatResult

Inheritance

objectHeartbeatResult

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

HeartbeatResult(HeartbeatResponse)

Initializes a new instance of the class with a successful heartbeat response.

public HeartbeatResult(HeartbeatResponse response)

Parameters

NameDescription

The heartbeat response.

HeartbeatResult(Exception)

Initializes a new instance of the class with an error during the heartbeat.

public HeartbeatResult(Exception ex)

Parameters

NameDescription

The exception representing the error during the heartbeat.

Properties

ActiveClientCount

Gets the number of active clients associated with the license.

public int ActiveClientCount { get; }

Property Value

int

ClientId

Gets the client id that send the heartbeat request.

public string ClientId { get; }

Property Value

string

Error

Gets the error that occurred during the heartbeat, if any.

public Exception Error { get; }

Property Value

Exception

HeartbeatExpireDate

Gets the date and time when the heartbeat will expire.

public DateTime HeartbeatExpireDate { get; }

Property Value

DateTime

HeartbeatInterval

Gets the interval at which the heartbeat should be performed.

public TimeSpan HeartbeatInterval { get; }

Property Value

TimeSpan

IsError

Gets a value indicating whether the heartbeat resulted in an error.

public bool IsError { get; }

Property Value

bool

LicenseToken

Gets the license token associated with the heartbeat.

public string LicenseToken { get; }

Property Value

string

MaxClientCount

Gets the maximum number of clients allowed by the license.

public int MaxClientCount { get; }

Property Value

int

Last updated