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