Table of Contents

Struct RunnerId

Namespace
MVVrus.AspNetCore.ActiveSession
Assembly
MVVrus.AspNetCore.ActiveSession.dll

A type to be used by a runner identifier. It usually exposed by a runner via its Id property.

public record struct RunnerId : IEquatable<RunnerId>
Implements
Inherited Members

Remarks

The runner identifier consists of two parts: Id of the active session to which the runner belongs and the number assigned to the runner within the session.

The identifier is used mainly for tracing purposes. It can be unaasigned or even not exposed at all by runners of some types. In these cases value of the identifier returned by the property equals default

The string represetation of an identifier (returned by its ToString() method) has the form
"{SessionId}:#{Generation-{RunnerNumber}"

Constructors

RunnerId(IActiveSession, int)
Constructor that initializes RunnerId instance value.
RunnerId(string, int, int)

Constructor that initializes RunnerId instance value.

Properties

Generation

An Generation value to which the runner belongs.

RunnerNumber

A number assigned to the runner within the session.

SessionId

Id of the active session to which the runner belongs.

Methods

ToString()

Returns a string representation of the value assigned to this instance.

Operators

implicit operator RunnerId((string SessionId, int RunnerNumber, int Generation))

Converts a tuple value to a RunnerId instance.