Corrected Exception messages
This commit is contained in:
parent
5e883827e0
commit
1cbb273b0d
|
|
@ -53,7 +53,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
{
|
||||
if (_stopped)
|
||||
{
|
||||
throw new ObjectDisposedException("RequestStream has been disposed");
|
||||
throw new ObjectDisposedException(nameof(FrameRequestStream));
|
||||
}
|
||||
|
||||
return ReadAsync(buffer, offset, count).GetAwaiter().GetResult();
|
||||
|
|
@ -64,7 +64,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
{
|
||||
if (_stopped)
|
||||
{
|
||||
throw new ObjectDisposedException("RequestStream has been disposed");
|
||||
throw new ObjectDisposedException(nameof(FrameRequestStream));
|
||||
}
|
||||
|
||||
var task = ReadAsync(buffer, offset, count, CancellationToken.None, state);
|
||||
|
|
@ -84,7 +84,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
{
|
||||
if (_stopped)
|
||||
{
|
||||
throw new ObjectDisposedException("RequestStream has been disposed");
|
||||
throw new ObjectDisposedException(nameof(FrameRequestStream));
|
||||
}
|
||||
|
||||
var tcs = new TaskCompletionSource<int>(state);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
{
|
||||
if (_stopped)
|
||||
{
|
||||
throw new ObjectDisposedException("ResponseStream has been disposed");
|
||||
throw new ObjectDisposedException(nameof(FrameResponseStream));
|
||||
}
|
||||
|
||||
_context.FrameControl.Flush();
|
||||
|
|
@ -48,7 +48,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
{
|
||||
if (_stopped)
|
||||
{
|
||||
throw new ObjectDisposedException("ResponseStream has been disposed");
|
||||
throw new ObjectDisposedException(nameof(FrameResponseStream));
|
||||
}
|
||||
|
||||
return _context.FrameControl.FlushAsync(cancellationToken);
|
||||
|
|
@ -73,7 +73,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
{
|
||||
if (_stopped)
|
||||
{
|
||||
throw new ObjectDisposedException("ResponseStream has been disposed");
|
||||
throw new ObjectDisposedException(nameof(FrameResponseStream));
|
||||
}
|
||||
|
||||
_context.FrameControl.Write(new ArraySegment<byte>(buffer, offset, count));
|
||||
|
|
@ -83,7 +83,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
{
|
||||
if (_stopped)
|
||||
{
|
||||
throw new ObjectDisposedException("ResponseStream has been disposed");
|
||||
throw new ObjectDisposedException(nameof(FrameResponseStream));
|
||||
}
|
||||
|
||||
return _context.FrameControl.WriteAsync(new ArraySegment<byte>(buffer, offset, count), cancellationToken);
|
||||
|
|
|
|||
Loading…
Reference in New Issue