Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
fixup! Ensure upgraded streams can be paused, cancelled, and aborted …
Browse files Browse the repository at this point in the history
…and add more tests
  • Loading branch information
Nate McMaster committed Apr 18, 2017
1 parent f4eb808 commit d8fc979
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,12 @@ public void InitializeStreams(MessageBody messageBody)
_frameStreams.Start(messageBody);
}

public void PauseStreams() => _frameStreams.Pause();

public void ResumeStreams() => _frameStreams.Resume();

public void StopStreams() => _frameStreams.Stop();

public void Reset()
{
FrameRequestHeaders?.Reset();
Expand Down Expand Up @@ -761,12 +767,6 @@ public Task InitializeResponse(int firstWriteByteCount)
return TaskCache.CompletedTask;
}

public void PauseStreams() => _frameStreams.Pause();

public void ResumeStreams() => _frameStreams.Resume();

public void StopStreams() => _frameStreams.Stop();

private async Task InitializeResponseAwaited(int firstWriteByteCount)
{
await FireOnStarting();
Expand Down
2 changes: 0 additions & 2 deletions test/shared/TestConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using Xunit.Sdk;

namespace Microsoft.AspNetCore.Testing
{
Expand Down

0 comments on commit d8fc979

Please sign in to comment.