1 instantiation of PushStreamHttpResult
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
480
return
new
(streamWriterCallback, contentType)
14 references to PushStreamHttpResult
Microsoft.AspNetCore.Http.Results (5)
PushStreamHttpResult.cs (3)
19
/// Creates a new <see cref="
PushStreamHttpResult
"/> instance with
30
/// Creates a new <see cref="
PushStreamHttpResult
"/> instance with
46
/// Creates a new <see cref="
PushStreamHttpResult
"/> instance with the provided values.
TypedResults.cs (2)
470
/// <returns>The created <see cref="
PushStreamHttpResult
"/> for the response.</returns>
471
public static
PushStreamHttpResult
Stream(
Microsoft.AspNetCore.Http.Results.Tests (9)
PushStreamResultTests.cs (4)
15
var
result = new PushStreamHttpResult(body => body.WriteAsync(Encoding.UTF8.GetBytes("Hello World").AsMemory()).AsTask(), contentType: null);
40
var
result = new PushStreamHttpResult(callback, contentType);
58
var
result = new PushStreamHttpResult(callback, contentType)
74
var
result = new PushStreamHttpResult(s => Task.CompletedTask, "content-type");
ResultsTests.cs (3)
320
var
pushStreamResult = result as
PushStreamHttpResult
;
1767
(() => Results.Stream(s => Task.CompletedTask, null, null, null, null), typeof(
PushStreamHttpResult
)),
TypedResultsTests.cs (2)
404
var
pushStreamResult = result as
PushStreamHttpResult
;