49 implementations of IResult
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
205
private sealed class OtlpResult<T> :
IResult
where T : IMessage
Microsoft.AspNetCore.Components.Endpoints (1)
Results\RazorComponentResult.cs (1)
16
public class RazorComponentResult :
IResult
, IStatusCodeHttpResult, IContentTypeHttpResult
Microsoft.AspNetCore.Http.Abstractions (1)
HttpResults\EmptyHttpResult.cs (1)
10
public sealed class EmptyHttpResult :
IResult
Microsoft.AspNetCore.Http.Results (45)
Accepted.cs (1)
17
public sealed class Accepted :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
AcceptedAtRoute.cs (1)
20
public sealed class AcceptedAtRoute :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
AcceptedAtRouteOfT.cs (1)
21
public sealed class AcceptedAtRoute<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>
AcceptedOfT.cs (1)
17
public sealed class Accepted<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>
BadRequest.cs (1)
16
public sealed class BadRequest :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
BadRequestOfT.cs (1)
17
public sealed class BadRequest<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>
ChallengeHttpResult.cs (1)
14
public sealed partial class ChallengeHttpResult :
IResult
Conflict.cs (1)
16
public sealed class Conflict :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
ConflictOfT.cs (1)
17
public sealed class Conflict<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>
ContentHttpResult.cs (1)
13
public sealed partial class ContentHttpResult :
IResult
, IStatusCodeHttpResult, IContentTypeHttpResult
Created.cs (1)
16
public sealed class Created :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
CreatedAtRoute.cs (1)
20
public sealed class CreatedAtRoute :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
CreatedAtRouteOfT.cs (1)
21
public sealed class CreatedAtRoute<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>
CreatedOfT.cs (1)
17
public sealed class Created<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>
FileContentHttpResult.cs (1)
15
public sealed partial class FileContentHttpResult :
IResult
, IFileHttpResult, IContentTypeHttpResult
FileStreamHttpResult.cs (1)
15
public sealed class FileStreamHttpResult :
IResult
, IFileHttpResult, IContentTypeHttpResult
ForbidHttpResult.cs (1)
14
public sealed partial class ForbidHttpResult :
IResult
InternalServerError.cs (1)
16
public sealed class InternalServerError :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
InternalServerErrorOfT.cs (1)
17
public sealed class InternalServerError<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>
JsonHttpResultOfT.cs (1)
19
public sealed partial class JsonHttpResult<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>, IContentTypeHttpResult
NoContent.cs (1)
16
public class NoContent :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
NotFound.cs (1)
16
public sealed class NotFound :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
NotFoundOfT.cs (1)
17
public sealed class NotFound<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>
Ok.cs (1)
16
public sealed class Ok :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
OkOfT.cs (1)
17
public sealed class Ok<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>
PhysicalFileHttpResult.cs (1)
14
public sealed partial class PhysicalFileHttpResult :
IResult
, IFileHttpResult, IContentTypeHttpResult
ProblemHttpResult.cs (1)
17
public sealed class ProblemHttpResult :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IContentTypeHttpResult, IValueHttpResult, IValueHttpResult<ProblemDetails>
PushStreamHttpResult.cs (1)
14
public sealed class PushStreamHttpResult :
IResult
, IFileHttpResult, IContentTypeHttpResult
RedirectHttpResult.cs (1)
15
public sealed partial class RedirectHttpResult :
IResult
RedirectToRouteHttpResult.cs (1)
17
public sealed partial class RedirectToRouteHttpResult :
IResult
ResultsOfT.Generated.cs (5)
24
public sealed class Results<[DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult1, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult2> :
IResult
, INestedHttpResult, IEndpointMetadataProvider
87
public sealed class Results<[DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult1, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult2, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult3> :
IResult
, INestedHttpResult, IEndpointMetadataProvider
159
public sealed class Results<[DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult1, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult2, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult3, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult4> :
IResult
, INestedHttpResult, IEndpointMetadataProvider
240
public sealed class Results<[DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult1, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult2, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult3, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult4, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult5> :
IResult
, INestedHttpResult, IEndpointMetadataProvider
330
public sealed class Results<[DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult1, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult2, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult3, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult4, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult5, [DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult6> :
IResult
, INestedHttpResult, IEndpointMetadataProvider
ServerSentEventsResult.cs (1)
21
public sealed class ServerSentEventsResult<T> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
SignInHttpResult.cs (1)
14
public sealed partial class SignInHttpResult :
IResult
SignOutHttpResult.cs (1)
14
public sealed partial class SignOutHttpResult :
IResult
StatusCodeHttpResult.cs (1)
13
public sealed partial class StatusCodeHttpResult :
IResult
, IStatusCodeHttpResult
UnauthorizedHttpResult.cs (1)
13
public sealed class UnauthorizedHttpResult :
IResult
, IStatusCodeHttpResult
UnprocessableEntity.cs (1)
16
public sealed class UnprocessableEntity :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult
UnprocessableEntityOfT.cs (1)
17
public sealed class UnprocessableEntity<TValue> :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult<TValue>
Utf8ContentHttpResult.cs (1)
13
public sealed partial class Utf8ContentHttpResult :
IResult
, IStatusCodeHttpResult, IContentTypeHttpResult
ValidationProblem.cs (1)
16
public sealed class ValidationProblem :
IResult
, IEndpointMetadataProvider, IStatusCodeHttpResult, IContentTypeHttpResult, IValueHttpResult, IValueHttpResult<HttpValidationProblemDetails>
VirtualFileHttpResult.cs (1)
17
public sealed class VirtualFileHttpResult :
IResult
, IFileHttpResult, IContentTypeHttpResult
Microsoft.AspNetCore.Mvc.Core (1)
SignOutResult.cs (1)
16
public partial class SignOutResult : ActionResult,
IResult
261 references to IResult
AzureFunctionsEndToEnd.Functions (1)
MyHttpTrigger.cs (1)
29
public
IResult
Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequest req)
Microsoft.AspNetCore.Components.Endpoints (2)
Results\RazorComponentResult.cs (1)
14
/// An <see cref="
IResult
"/> that renders a Razor Component.
Results\RazorComponentResultOfT.cs (1)
11
/// An <see cref="
IResult
"/> that renders a Razor Component.
Microsoft.AspNetCore.Http.Abstractions (5)
HttpResults\EmptyHttpResult.cs (1)
7
/// Represents an <see cref="
IResult
"/> that when executed will
HttpResults\INestedHttpResult.cs (4)
8
/// that contains a nested <see cref="
IResult
"/> type.
10
/// <remarks>For example, <c>Results<TResult1, TResult2></c> is an <see cref="INestedHttpResult"/> and will contain the returned <see cref="
IResult
"/>.</remarks>
14
/// Gets the actual <see cref="
IResult
"/> returned by the <see cref="Endpoint"/> route handler delegate.
16
IResult
Result { get; }
Microsoft.AspNetCore.Http.Extensions (12)
RequestDelegateFactory.cs (11)
1047
if (returnType == typeof(void) || typeof(
IResult
).IsAssignableFrom(returnType))
1127
if (typeof(
IResult
).IsAssignableFrom(typeArg))
1175
if (typeof(
IResult
).IsAssignableFrom(typeArg))
1224
else if (typeof(
IResult
).IsAssignableFrom(returnType))
1228
var box = Expression.TypeAs(methodCall, typeof(
IResult
));
2661
private static Task ExecuteValueTaskResult<T>(ValueTask<T?> task, HttpContext httpContext) where T :
IResult
2676
private static async Task ExecuteTaskResult<T>(Task<T?> task, HttpContext httpContext) where T :
IResult
2683
private static async Task ExecuteResultWriteResponse(
IResult
? result, HttpContext httpContext)
2880
private static void EnsureRequestTaskOfNotNull<T>(Task<T?> task) where T :
IResult
2896
private static
IResult
EnsureRequestResultNotNull(
IResult
? result)
src\aspnetcore\src\Shared\RouteHandlers\ExecuteHandlerHelper.cs (1)
15
if (obj is
IResult
result)
Microsoft.AspNetCore.Http.Results (222)
Accepted.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
AcceptedAtRoute.cs (1)
16
/// An <see cref="
IResult
"/> that on execution will write an object to the response
AcceptedAtRouteOfT.cs (1)
16
/// An <see cref="
IResult
"/> that on execution will write an object to the response
AcceptedOfT.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
BadRequest.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
BadRequestOfT.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
ChallengeHttpResult.cs (1)
12
/// An <see cref="
IResult
"/> that on execution invokes <see cref="M:HttpContext.ChallengeAsync"/>.
Conflict.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
ConflictOfT.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
Created.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
CreatedAtRoute.cs (1)
16
/// An <see cref="
IResult
"/> that on execution will write an object to the response
CreatedAtRouteOfT.cs (1)
16
/// An <see cref="
IResult
"/> that on execution will write an object to the response
CreatedOfT.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
FileContentHttpResult.cs (1)
12
/// Represents an <see cref="
IResult
"/> that when executed will
FileStreamHttpResult.cs (1)
12
/// Represents an <see cref="
IResult
"/> that when executed will
ForbidHttpResult.cs (1)
12
/// An <see cref="
IResult
"/> that on execution invokes <see cref="M:HttpContext.ForbidAsync"/>.
InternalServerError.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
InternalServerErrorOfT.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
NoContent.cs (1)
13
/// Represents an <see cref="
IResult
"/> that when executed will
NotFound.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
NotFoundOfT.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
Ok.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
OkOfT.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
ProblemHttpResult.cs (1)
14
/// An <see cref="
IResult
"/> that on execution will write Problem Details
PushStreamHttpResult.cs (1)
11
/// Represents an <see cref="
IResult
"/> that when executed will
RedirectHttpResult.cs (1)
12
/// An <see cref="
IResult
"/> that returns a Found (302), Moved Permanently (301), Temporary Redirect (307),
RedirectToRouteHttpResult.cs (1)
13
/// An <see cref="
IResult
"/> that returns a Found (302), Moved Permanently (301), Temporary Redirect (307),
Results.cs (136)
23
/// A factory for <see cref="
IResult
"/>.
28
/// Creates an <see cref="
IResult
"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ChallengeAsync(HttpContext, string?, AuthenticationProperties?)" />.
38
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
39
public static
IResult
Challenge(
45
/// Creates a <see cref="
IResult
"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ForbidAsync(HttpContext, string?, AuthenticationProperties?)"/>.
54
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
59
public static
IResult
Forbid(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
63
/// Creates an <see cref="
IResult
"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignInAsync(HttpContext, string?, ClaimsPrincipal, AuthenticationProperties?)" />.
68
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
69
public static
IResult
SignIn(
76
/// Creates an <see cref="
IResult
"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignOutAsync(HttpContext, string?, AuthenticationProperties?)" />.
80
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
81
public static
IResult
SignOut(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
93
/// <returns>The created <see cref="
IResult
"/> object for the response.</returns>
98
public static
IResult
Content(string? content, string? contentType, Encoding? contentEncoding)
111
/// <returns>The created <see cref="
IResult
"/> object for the response.</returns>
116
public static
IResult
Content(string? content, string? contentType = null, Encoding? contentEncoding = null, int? statusCode = null)
128
/// <returns>The created <see cref="
IResult
"/> object for the response.</returns>
133
public static
IResult
Text(string? content, string? contentType, Encoding? contentEncoding)
146
/// <returns>The created <see cref="
IResult
"/> object for the response.</returns>
151
public static
IResult
Text(string? content, string? contentType = null, Encoding? contentEncoding = null, int? statusCode = null)
160
/// <returns>The created <see cref="
IResult
"/> object for the response.</returns>
161
public static
IResult
Text(ReadOnlySpan<byte> utf8Content, string? contentType = null, int? statusCode = null)
169
/// <returns>The created <see cref="
IResult
"/> object for the response.</returns>
170
public static
IResult
Content(string? content, MediaTypeHeaderValue contentType)
174
/// Creates a <see cref="
IResult
"/> that serializes the specified <paramref name="data"/> object to JSON.
186
public static
IResult
Json(object? data, JsonSerializerOptions? options = null, string? contentType = null, int? statusCode = null)
190
/// Creates a <see cref="
IResult
"/> that serializes the specified <paramref name="data"/> object to JSON.
201
public static
IResult
Json(object? data, JsonTypeInfo jsonTypeInfo, string? contentType = null, int? statusCode = null)
208
/// Creates a <see cref="
IResult
"/> that serializes the specified <paramref name="data"/> object to JSON.
220
public static
IResult
Json(object? data, Type type, JsonSerializerContext context, string? contentType = null, int? statusCode = null)
230
/// Creates a <see cref="
IResult
"/> that serializes the specified <paramref name="data"/> object to JSON.
242
public static
IResult
Json<TValue>(TValue? data, JsonSerializerOptions? options = null, string? contentType = null, int? statusCode = null)
247
/// Creates a <see cref="
IResult
"/> that serializes the specified <paramref name="data"/> object to JSON.
258
public static
IResult
Json<TValue>(TValue? data, JsonTypeInfo<TValue> jsonTypeInfo, string? contentType = null, int? statusCode = null)
263
/// Creates a <see cref="
IResult
"/> that serializes the specified <paramref name="data"/> object to JSON.
274
public static
IResult
Json<TValue>(TValue? data, JsonSerializerContext context, string? contentType = null, int? statusCode = null)
293
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
294
public static
IResult
File(
318
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
319
public static
IResult
Bytes(
341
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
342
public static
IResult
Bytes(
369
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
373
public static
IResult
File(
400
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
404
public static
IResult
Stream(
428
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
432
public static
IResult
Stream(
451
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
452
public static
IResult
Stream(
473
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
474
public static
IResult
File(
505
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
506
public static
IResult
Redirect([StringSyntax(StringSyntaxAttribute.Uri)] string url, bool permanent = false, bool preserveMethod = false)
529
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
530
public static
IResult
LocalRedirect([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl, bool permanent = false, bool preserveMethod = false)
555
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
557
public static
IResult
RedirectToRoute(string? routeName = null, object? routeValues = null, bool permanent = false, bool preserveMethod = false, string? fragment = null)
582
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
584
public static
IResult
RedirectToRoute(string? routeName, RouteValueDictionary? routeValues, bool permanent = false, bool preserveMethod = false, string? fragment = null)
589
/// Creates an <see cref="
IResult
"/> object by specifying a <paramref name="statusCode"/>.
592
/// <returns>The created <see cref="
IResult
"/> object for the response.</returns>
593
public static
IResult
StatusCode(int statusCode)
600
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
601
public static
IResult
NotFound(object? value = null)
608
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
609
public static
IResult
NotFound<TValue>(TValue? value)
615
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
616
public static
IResult
Unauthorized()
623
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
624
public static
IResult
BadRequest(object? error = null)
631
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
632
public static
IResult
BadRequest<TValue>(TValue? error)
639
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
640
public static
IResult
Conflict(object? error = null)
647
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
648
public static
IResult
Conflict<TValue>(TValue? error)
654
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
655
public static
IResult
NoContent()
662
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
663
public static
IResult
Ok(object? value = null)
670
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
671
public static
IResult
Ok<TValue>(TValue? value)
678
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
679
public static
IResult
UnprocessableEntity(object? error = null)
686
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
687
public static
IResult
UnprocessableEntity<TValue>(TValue? error)
693
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
694
public static
IResult
InternalServerError()
701
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
702
public static
IResult
InternalServerError<TValue>(TValue? error)
714
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
715
public static
IResult
Problem(
733
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
735
public static
IResult
Problem(
749
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
750
public static
IResult
Problem(ProblemDetails problemDetails)
764
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
765
public static
IResult
ValidationProblem(
788
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
790
public static
IResult
ValidationProblem(
832
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
833
public static
IResult
Created()
841
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
842
public static
IResult
Created(string? uri, object? value)
850
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
851
public static
IResult
Created<TValue>(string? uri, TValue? value)
859
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
860
public static
IResult
Created(Uri? uri, object? value)
868
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
869
public static
IResult
Created<TValue>(Uri? uri, TValue? value)
878
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
880
public static
IResult
CreatedAtRoute(string? routeName = null, object? routeValues = null, object? value = null)
889
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
891
public static
IResult
CreatedAtRoute(string? routeName, RouteValueDictionary? routeValues, object? value = null)
901
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
903
public static
IResult
CreatedAtRoute<TValue>(string? routeName = null, object? routeValues = null, TValue? value = default)
912
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
914
public static
IResult
CreatedAtRoute<TValue>(string? routeName, RouteValueDictionary? routeValues, TValue? value = default)
923
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
924
public static
IResult
Accepted(string? uri = null, object? value = null)
932
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
933
public static
IResult
Accepted<TValue>(string? uri = null, TValue? value = default)
942
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
944
public static
IResult
AcceptedAtRoute(string? routeName = null, object? routeValues = null, object? value = null)
953
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
955
public static
IResult
AcceptedAtRoute(string? routeName, RouteValueDictionary? routeValues, object? value = null)
965
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
967
public static
IResult
AcceptedAtRoute<TValue>(string? routeName = null, object? routeValues = null, TValue? value = default)
976
/// <returns>The created <see cref="
IResult
"/> for the response.</returns>
978
public static
IResult
AcceptedAtRoute<TValue>(string? routeName, RouteValueDictionary? routeValues, TValue? value = default)
992
public static
IResult
ServerSentEvents(IAsyncEnumerable<string> values, string? eventType = null)
1008
public static
IResult
ServerSentEvents<T>(IAsyncEnumerable<T> values, string? eventType = null)
1022
public static
IResult
ServerSentEvents<T>(IAsyncEnumerable<SseItem<T>> values)
1028
public static
IResult
Empty => EmptyHttpResult.Instance;
ResultsOfT.Generated.cs (50)
14
/// An <see cref="
IResult
"/> that could be one of two different <see cref="
IResult
"/> types. On execution will
15
/// execute the underlying <see cref="
IResult
"/> instance that was actually returned by the HTTP endpoint.
25
where TResult1 :
IResult
26
where TResult2 :
IResult
29
private Results(
IResult
activeResult)
35
/// Gets the actual <see cref="
IResult
"/> returned by the <see cref="Endpoint"/> route handler delegate.
37
public
IResult
Result { get; }
76
/// An <see cref="
IResult
"/> that could be one of three different <see cref="
IResult
"/> types. On execution will
77
/// execute the underlying <see cref="
IResult
"/> instance that was actually returned by the HTTP endpoint.
88
where TResult1 :
IResult
89
where TResult2 :
IResult
90
where TResult3 :
IResult
93
private Results(
IResult
activeResult)
99
/// Gets the actual <see cref="
IResult
"/> returned by the <see cref="Endpoint"/> route handler delegate.
101
public
IResult
Result { get; }
147
/// An <see cref="
IResult
"/> that could be one of four different <see cref="
IResult
"/> types. On execution will
148
/// execute the underlying <see cref="
IResult
"/> instance that was actually returned by the HTTP endpoint.
160
where TResult1 :
IResult
161
where TResult2 :
IResult
162
where TResult3 :
IResult
163
where TResult4 :
IResult
166
private Results(
IResult
activeResult)
172
/// Gets the actual <see cref="
IResult
"/> returned by the <see cref="Endpoint"/> route handler delegate.
174
public
IResult
Result { get; }
227
/// An <see cref="
IResult
"/> that could be one of five different <see cref="
IResult
"/> types. On execution will
228
/// execute the underlying <see cref="
IResult
"/> instance that was actually returned by the HTTP endpoint.
241
where TResult1 :
IResult
242
where TResult2 :
IResult
243
where TResult3 :
IResult
244
where TResult4 :
IResult
245
where TResult5 :
IResult
248
private Results(
IResult
activeResult)
254
/// Gets the actual <see cref="
IResult
"/> returned by the <see cref="Endpoint"/> route handler delegate.
256
public
IResult
Result { get; }
316
/// An <see cref="
IResult
"/> that could be one of six different <see cref="
IResult
"/> types. On execution will
317
/// execute the underlying <see cref="
IResult
"/> instance that was actually returned by the HTTP endpoint.
331
where TResult1 :
IResult
332
where TResult2 :
IResult
333
where TResult3 :
IResult
334
where TResult4 :
IResult
335
where TResult5 :
IResult
336
where TResult6 :
IResult
339
private Results(
IResult
activeResult)
345
/// Gets the actual <see cref="
IResult
"/> returned by the <see cref="Endpoint"/> route handler delegate.
347
public
IResult
Result { get; }
SignInHttpResult.cs (1)
12
/// An <see cref="
IResult
"/> that on execution invokes <see cref="M:HttpContext.SignInAsync"/>.
SignOutHttpResult.cs (1)
12
/// An <see cref="
IResult
"/> that on execution invokes <see cref="M:HttpContext.SignOutAsync"/>.
StatusCodeHttpResult.cs (1)
10
/// Represents an <see cref="
IResult
"/> that when executed will
TypedResults.cs (1)
23
/// A typed factory for <see cref="
IResult
"/> types in <see cref="Microsoft.AspNetCore.Http.HttpResults"/>.
UnauthorizedHttpResult.cs (1)
10
/// Represents an <see cref="
IResult
"/> that when executed will
UnprocessableEntity.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
UnprocessableEntityOfT.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write an object to the response
ValidationProblem.cs (1)
13
/// An <see cref="
IResult
"/> that on execution will write Problem Details
VirtualFileHttpResult.cs (1)
14
/// A <see cref="
IResult
" /> that on execution writes the file specified
Microsoft.AspNetCore.Identity (2)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (2)
1361
if (obj is
IResult
r)
1475
private static Task ExecuteAsyncExplicit(
IResult
result, HttpContext httpContext)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (2)
316
if (typeof(
IResult
).IsAssignableFrom(metadata.Type) && typeof(IEndpointMetadataProvider).IsAssignableFrom(metadata.Type))
462
typeof(
IResult
).IsAssignableFrom(unwrappedType))
EndpointMetadataApiDescriptionProvider.cs (1)
338
if (IsTaskOrValueTask(responseType) || typeof(
IResult
).IsAssignableFrom(responseType))
Microsoft.AspNetCore.Mvc.Core (10)
ActionResultOfT.cs (2)
25
typeof(
IResult
).IsAssignableFrom(typeof(TValue)))
41
typeof(
IResult
).IsAssignableFrom(typeof(TValue)))
HttpActionResult.cs (6)
9
/// An <see cref="ActionResult"/> that when executed will produce a response based on the <see cref="
IResult
"/> provided.
14
/// Gets the instance of the current <see cref="
IResult
"/>.
16
public
IResult
Result { get; }
20
/// <see cref="
IResult
"/> provided.
22
/// <param name="result">The <see cref="
IResult
"/> instance to be used during the <see cref="ExecuteResultAsync"/> invocation.</param>
23
public HttpActionResult(
IResult
result)
Infrastructure\ActionResultTypeMapper.cs (1)
34
if (value is
IResult
httpResult)
SignOutResult.cs (1)
98
Task
IResult
.ExecuteAsync(HttpContext httpContext)
Microsoft.AspNetCore.Routing (1)
src\aspnetcore\src\Shared\RouteHandlers\ExecuteHandlerHelper.cs (1)
15
if (obj is
IResult
result)
TestProject.IntegrationServiceA (3)
Postgres\NpgsqlEFCoreExtensions.cs (1)
13
private static
IResult
VerifyNpgsqlEFCoreAsync(NpgsqlDbContext dbContext)
Postgres\PostgresExtensions.cs (1)
13
private static async Task<
IResult
> VerifyPostgresAsync(NpgsqlConnection connection)
Redis\RedisExtensions.cs (1)
13
private static async Task<
IResult
> VerifyRedisAsync([FromKeyedServices("redis")] IConnectionMultiplexer cm)