~ruther/NosSmooth.Comms

ref: edcd26a2f21092371c9169ae56ae85c144a8bfd7 NosSmooth.Comms/src/Core/NosSmooth.Comms.Abstractions/Messages/MessageWrapper.cs -rw-r--r-- 694 bytes
edcd26a2 — Rutherther feat: move to new injection supporting passing in data and returning integer 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//
//  MessageWrapper.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace NosSmooth.Comms.Data.Messages;

/// <summary>
/// A wrapper, each message is sent wrapped.
/// </summary>
/// <param name="ProtocolVersion">The version of protocol used.</param>
/// <param name="MessageId">The id of the message, used for connecting responses to messages.</param>
/// <param name="Data">The message itself.</param>
/// <typeparam name="TMessage">The type of the message.</typeparam>
public record MessageWrapper<TMessage>(long ProtocolVersion, long MessageId, TMessage Data);