Initial Client/Server Communication
#1 Followed the MagicOnion quickstart guide, borrowing code from the chat sample app to get something working
This commit is contained in:
parent
52b0d4d8ff
commit
a0c8dbee72
493 changed files with 57790 additions and 3 deletions
|
|
@ -0,0 +1,42 @@
|
|||
// Copyright (c) All contributors. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
using System.Buffers;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MessagePack.Formatters
|
||||
{
|
||||
#pragma warning disable SA1649 // File name should match first type name
|
||||
/// <summary>
|
||||
/// A base interface for <see cref="IMessagePackFormatter{T}"/> so that all generic implementations
|
||||
/// can be detected by a common base type.
|
||||
/// </summary>
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public interface IMessagePackFormatter
|
||||
{
|
||||
}
|
||||
#pragma warning restore SA1649 // File name should match first type name
|
||||
|
||||
/// <summary>
|
||||
/// The contract for serialization of some specific type.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type to be serialized or deserialized.</typeparam>
|
||||
public interface IMessagePackFormatter<T> : IMessagePackFormatter
|
||||
{
|
||||
/// <summary>
|
||||
/// Serializes a value.
|
||||
/// </summary>
|
||||
/// <param name="writer">The writer to use when serializing the value.</param>
|
||||
/// <param name="value">The value to be serialized.</param>
|
||||
/// <param name="options">The serialization settings to use, including the resolver to use to obtain formatters for types that make up the composite type <typeparamref name="T"/>.</param>
|
||||
void Serialize(ref MessagePackWriter writer, T value, MessagePackSerializerOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Deserializes a value.
|
||||
/// </summary>
|
||||
/// <param name="reader">The reader to deserialize from.</param>
|
||||
/// <param name="options">The serialization settings to use, including the resolver to use to obtain formatters for types that make up the composite type <typeparamref name="T"/>.</param>
|
||||
/// <returns>The deserialized value.</returns>
|
||||
T Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue