-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make serverlessProtocol project nullable (#2090)
- Loading branch information
Showing
10 changed files
with
265 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
src/Microsoft.Azure.SignalR.Serverless.Protocols/IServerlessProtocol.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
#nullable enable | ||
using System.Buffers; | ||
|
||
namespace Microsoft.Azure.SignalR.Serverless.Protocols | ||
namespace Microsoft.Azure.SignalR.Serverless.Protocols; | ||
|
||
public interface IServerlessProtocol | ||
{ | ||
public interface IServerlessProtocol | ||
{ | ||
// TODO: Have a discussion about how to handle version change. | ||
/// <summary> | ||
/// Gets the version of the protocol. | ||
/// </summary> | ||
int Version { get; } | ||
// TODO: Have a discussion about how to handle version change. | ||
/// <summary> | ||
/// Gets the version of the protocol. | ||
/// </summary> | ||
int Version { get; } | ||
|
||
/// <summary> | ||
/// Creates a new <see cref="ServerlessMessage"/> from the specified serialized representation. | ||
/// </summary> | ||
/// <param name="input">The serialized representation of the message.</param> | ||
/// <param name="message">When this method returns <c>true</c>, contains the parsed message.</param> | ||
/// <returns>A value that is <c>true</c> if the <see cref="ServerlessMessage"/> was successfully parsed; otherwise, <c>false</c>.</returns> | ||
bool TryParseMessage(ref ReadOnlySequence<byte> input, out ServerlessMessage message); | ||
} | ||
/// <summary> | ||
/// Creates a new <see cref="ServerlessMessage"/> from the specified serialized representation. | ||
/// </summary> | ||
/// <param name="input">The serialized representation of the message.</param> | ||
/// <param name="message">When this method returns <c>true</c>, contains the parsed message.</param> | ||
/// <returns>A value that is <c>true</c> if the <see cref="ServerlessMessage"/> was successfully parsed; otherwise, <c>false</c>.</returns> | ||
bool TryParseMessage(ref ReadOnlySequence<byte> input, out ServerlessMessage? message); | ||
} |
1 change: 1 addition & 0 deletions
1
src/Microsoft.Azure.SignalR.Serverless.Protocols/Internal/Constants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.