~ruther/NosSmooth.Comms

ref: 12e8d20913473e4c044e11e9460fd0c7b7bb3d0c NosSmooth.Comms/src/Core/NosSmooth.Comms.Core/NosSmoothMessageSerializerOptions.cs -rw-r--r-- 894 bytes
12e8d209 — Rutherther feat: add a console sample logging all received and sent packets from nostale process 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
//  NosSmoothMessageSerializerOptions.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.

using MessagePack;

namespace NosSmooth.Comms.Core;

/// <summary>
/// Contains options for MessagePack.
/// </summary>
public class NosSmoothMessageSerializerOptions
{
    /// <summary>
    /// Gets or sets the message pack options.
    /// </summary>
    public MessagePackSerializerOptions Options { get; set; } = MessagePackSerializer.Typeless.DefaultOptions;

    /// <summary>
    /// Obtain the options.
    /// </summary>
    /// <param name="options">The options wrapper.</param>
    /// <returns>The options.</returns>
    public static implicit operator MessagePackSerializerOptions(NosSmoothMessageSerializerOptions options)
    {
        return options.Options;
    }
}
Do not follow this link