13 writes to Result
BasicWebSite (3)
Filters\RedirectAntiforgeryValidationFailedResultFilter.cs (1)
16context.Result = new RedirectResult("http://example.com/antiforgery-redirect");
Filters\TraceOutputResultFilter.cs (1)
14context.Result = new ObjectResult(trace);
Filters\UnprocessableResultFilter.cs (1)
20context.Result = new ObjectResult("Can't process this!")
Microsoft.AspNetCore.Mvc.Abstractions (1)
Filters\ResultExecutingContext.cs (1)
26Result = result;
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ClientErrorResultFilter.cs (1)
55context.Result = result;
Microsoft.AspNetCore.Mvc.Core.TestCommon (5)
CommonFilterTest.cs (1)
132c.Result = new NoOpResult();
CommonResourceInvokerTest.cs (4)
967.Callback<ResultExecutingContext>(c => c.Result = result.Object) 1000.Callback<ResultExecutingContext>(c => c.Result = result.Object) 1047c.Result = result.Object; 1296c.Result = expected;
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\PageActionInvokerTest.cs (2)
700context.Result = expectedResult; 735context.Result = expectedResult;
RazorPagesWebSite (1)
ModelAsFilter.cs (1)
34context.Result = Redirect("/Different-Location");
45 references to Result
BasicWebSite (2)
Filters\RedirectAntiforgeryValidationFailedResultFilter.cs (1)
14if (context.Result is IAntiforgeryValidationFailedResult result)
Filters\UnprocessableResultFilter.cs (1)
17if (context.Result is StatusCodeResult statusCodeResult &&
Microsoft.AspNetCore.Mvc.Abstractions (3)
Filters\ResultExecutedContext.cs (2)
22/// The <see cref="IActionResult"/> copied from <see cref="ResultExecutingContext.Result"/>. 98/// Gets the <see cref="IActionResult"/> copied from <see cref="ResultExecutingContext.Result"/>.
Filters\ResultExecutingContext.cs (1)
36/// Gets or sets the <see cref="IActionResult"/> to execute. Setting <see cref="Result"/> to a non-<c>null</c>
Microsoft.AspNetCore.Mvc.Core (7)
Formatters\FormatFilter.cs (1)
143if (context.Result is not ObjectResult objectResult)
Infrastructure\ClientErrorResultFilter.cs (2)
36if (!(context.Result is IClientErrorActionResult clientError)) 54Log.TransformingClientError(_logger, context.Result.GetType(), result.GetType(), clientError.StatusCode);
Infrastructure\ResourceInvoker.cs (3)
1207resultExecutingContext.Result, 1253resultExecutingContext.Result, 1303_result = _resultExecutingContext.Result;
ProducesAttribute.cs (1)
74if (context.Result is ObjectResult objectResult)
Microsoft.AspNetCore.Mvc.Core.Test (14)
Formatters\FormatFilterTest.cs (5)
52var objectResult = Assert.IsType<ObjectResult>(resultExecutingContext.Result); 96var objectResult = Assert.IsType<ObjectResult>(resultExecutingContext.Result); 128var objectResult = Assert.IsType<ObjectResult>(resultExecutingContext.Result); 351var result = Assert.IsType<ObjectResult>(resultExecutingContext.Result); 386var result = Assert.IsType<ObjectResult>(resultExecutingContext.Result);
Infrastructure\ClientErrorResultFilterTest.cs (5)
29Assert.Same(actionResult, context.Result); 50Assert.Same(actionResult, context.Result); 66Assert.Same(Result, context.Result); 84Assert.Same(Result, context.Result); 102Assert.Same(actionResult, context.Result);
ProducesAttributeTests.cs (4)
31var objectResult = resultExecutingContext.Result as ObjectResult; 58var objectResult = Assert.IsType<ObjectResult>(resultExecutingContext.Result); 83var objectResult = Assert.IsType<ObjectResult>(resultExecutingContext.Result); 179return new ResultExecutedContext(context, context.Filters, context.Result, context.Controller);
Microsoft.AspNetCore.Mvc.Core.TestCommon (7)
CommonFilterTest.cs (1)
221return new ResultExecutedContext(context, context.Filters, context.Result, context.Controller);
CommonResourceInvokerTest.cs (6)
1737.Callback<ResultExecutingContext>(c => Assert.Same(Result, c.Result)) 1769Assert.Same(Result, c.Result); 1840.Callback<ResultExecutingContext>(c => Assert.Same(Result, c.Result)) 1872Assert.Same(Result, c.Result); 1937.Callback<ResultExecutingContext>(c => Assert.Same(Result, c.Result)) 1969Assert.Same(Result, c.Result);
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
Filters\PageHandlerResultFilterTest.cs (4)
39resultExecutingContext.Result, 80resultExecutingContext.Result, 122resultExecutingContext.Result, 154resultExecutingContext.Result,
Infrastructure\PageActionInvokerTest.cs (5)
181result = c.Result; 237result = c.Result; 294result = c.Result; 701result = context.Result; 736result = context.Result;
RazorPagesWebSite (1)
ModelAsFilter.cs (1)
32if (context.Result is NotFoundResult)
XmlFormattersWebSite (2)
Controllers\XmlDataContractApiController.cs (1)
18if (!(context.Result is ObjectResult objectResult))
Controllers\XmlSerializedApiController.cs (1)
18if (!(context.Result is ObjectResult objectResult))