2 instantiations of ContentHttpResult
Microsoft.AspNetCore.Http.Results (2)
TypedResults.cs (2)
174
return
new
(content, mediaTypeHeaderValue?.ToString(), statusCode);
184
=>
new
(content, contentType.ToString());
17 references to ContentHttpResult
Microsoft.AspNetCore.Http.Results (13)
ContentHttpResult.cs (3)
10
/// An <see cref="
ContentHttpResult
"/> that when executed
16
/// Initializes a new instance of the <see cref="
ContentHttpResult
"/> class with the values.
26
/// Initializes a new instance of the <see cref="
ContentHttpResult
"/> class with the values
TypedResults.cs (10)
101
/// <returns>The created <see cref="
ContentHttpResult
"/> object for the response.</returns>
102
public static
ContentHttpResult
Content(string? content, string? contentType, Encoding? contentEncoding)
119
/// <returns>The created <see cref="
ContentHttpResult
"/> object for the response.</returns>
120
public static
ContentHttpResult
Content(string? content, string? contentType = null, Encoding? contentEncoding = null, int? statusCode = null)
136
/// <returns>The created <see cref="
ContentHttpResult
"/> object for the response.</returns>
137
public static
ContentHttpResult
Text(string? content, string? contentType, Encoding? contentEncoding)
164
/// <returns>The created <see cref="
ContentHttpResult
"/> object for the response.</returns>
165
public static
ContentHttpResult
Text(string? content, string? contentType = null, Encoding? contentEncoding = null, int? statusCode = null)
182
/// <returns>The created <see cref="
ContentHttpResult
"/> object for the response.</returns>
183
public static
ContentHttpResult
Content(string? content, MediaTypeHeaderValue contentType)
Microsoft.AspNetCore.Identity (4)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (3)
499
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.
ContentHttpResult
, global::Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult>>(methodInfo, options.EndpointBuilder);
508
var handler = Cast(del, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.
ContentHttpResult
, global::Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult>> (global::System.String arg0, global::System.String arg1, global::System.String? arg2, global::System.IServiceProvider arg3) => throw null!);
618
var castHandler = Cast(handler, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.
ContentHttpResult
, global::Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult>> (global::System.String arg0, global::System.String arg1, global::System.String? arg2, global::System.IServiceProvider arg3) => throw null!);
IdentityApiEndpointRouteBuilderExtensions.cs (1)
142
routeGroup.MapGet("/confirmEmail", async Task<Results<
ContentHttpResult
, UnauthorizedHttpResult>>