Skip to content

Conversation

adamradocz
Copy link
Contributor

Add CompleteAsync and CancelPending to the Protocols.

@adamradocz
Copy link
Contributor Author

@davidfowl I just realised that, this PR also contains the modifications of #124. Do you want me separate it from that one?

Other:
Related to #127, I'd like to make a PR that updates the client sample app to show how to disconnect from the server. Is that OK with you? Just asking, because this repo seems abandoned to me.

</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.4.244" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this here?

Copy link
Contributor Author

@adamradocz adamradocz Dec 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is in the master too. I just updated it.

"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",

<PackageReference Include="Nerdbank.GitVersioning">


case State.Headers:
while (sequenceReader.TryReadTo(out var headerLine, NewLine))
while (sequenceReader.TryReadTo(out ReadOnlySequence<byte> headerLine, NewLine))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On .NET 6 you get the following error when you use the var:

Error	CS0121	The call is ambiguous between the following methods or properties: 
'SequenceReader<T>.TryReadTo(out ReadOnlySequence<T>, ReadOnlySpan<T>, bool)' and
'SequenceReader<T>.TryReadTo(out ReadOnlySpan<T>, ReadOnlySpan<T>, bool)'


case State.Headers:
while (sequenceReader.TryReadTo(out var headerLine, NewLine))
while (sequenceReader.TryReadTo(out ReadOnlySequence<byte> headerLine, NewLine))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo

Copy link
Contributor Author

@adamradocz adamradocz Dec 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On .NET 6 you get the following error when you use the var:

Error	CS0121	The call is ambiguous between the following methods or properties: 
'SequenceReader<T>.TryReadTo(out ReadOnlySequence<T>, ReadOnlySpan<T>, bool)' and
'SequenceReader<T>.TryReadTo(out ReadOnlySpan<T>, ReadOnlySpan<T>, bool)'

</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.4.244" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be here.

Copy link
Contributor Author

@adamradocz adamradocz Dec 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is in the master too. I just updated it.

"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",

<PackageReference Include="Nerdbank.GitVersioning">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants