RedMist
Search Results for

    Show / Hide Table of Contents

    Class PayloadExtensions

    Provides extension methods for converting a Payload to a SessionState with deep copying of relevant fields.

    Inheritance
    object
    PayloadExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: RedMist.TimingCommon.Extensions
    Assembly: RedMist.TimingCommon.dll
    Syntax
    public static class PayloadExtensions
    Remarks

    Fields in SessionState that are not present in the Payload are initialized with their default values. EventEntryUpdates and CarPositionUpdates fields are intentionally ignored during conversion. This class is intended for scenarios where a complete SessionState representation is needed based on the available data in a Payload.

    Methods

    View Source

    ToSessionState(Payload)

    Converts a Payload to a SessionState with deep copying of CarPositions. EventEntryUpdates and CarPositionUpdates fields are ignored. Fields not available in Payload are left as default values.

    Declaration
    public static SessionState ToSessionState(this Payload payload)
    Parameters
    Type Name Description
    Payload payload

    The Payload to convert

    Returns
    Type Description
    SessionState

    A new SessionState instance with available fields copied

    • View Source
    In this article
    Back to top © 2025 Big Mission Motorsports, LLC. Red Mist Timing & Scoring