1 write to Object
Microsoft.AspNetCore.Mvc.Abstractions (1)
Formatters\OutputFormatterWriteContext.cs (1)
28
Object
= @object;
25 references to Object
BasicWebSite (6)
Formatters\CustomFormatter.cs (2)
25
var actionReturnString = context.
Object
as string;
38
await response.WriteAsync(context.
Object
.ToString());
Formatters\PlainTextFormatter.cs (2)
22
var actionReturnString = context.
Object
as string;
36
await response.WriteAsync(context.
Object
as string);
Formatters\VCardFormatter_V3.cs (1)
31
var contact = (Contact)context.
Object
;
Formatters\VCardFormatter_V4.cs (1)
32
var contact = (Contact)context.
Object
;
Microsoft.AspNetCore.Mvc.Core (10)
Formatters\HttpNoContentOutputFormatter.cs (1)
30
return TreatNullValueAsNoContent && context.
Object
== null;
Formatters\StreamOutputFormatter.cs (2)
18
if (context.
Object
is Stream)
31
using (var valueAsStream = ((Stream)context.
Object
!))
Formatters\StringOutputFormatter.cs (2)
33
if (context.ObjectType == typeof(string) || context.
Object
is string)
48
var valueAsString = (string?)context.
Object
;
Formatters\SystemTextJsonOutputFormatter.cs (5)
79
var runtimeType = context.
Object
?.GetType();
94
await JsonSerializer.SerializeAsync(responseWriter, context.
Object
, jsonTypeInfo, httpContext.RequestAborted);
98
await JsonSerializer.SerializeAsync(responseWriter, context.
Object
, SerializerOptions, httpContext.RequestAborted);
114
await JsonSerializer.SerializeAsync(transcodingStream, context.
Object
, jsonTypeInfo);
118
await JsonSerializer.SerializeAsync(transcodingStream, context.
Object
, SerializerOptions);
Microsoft.AspNetCore.Mvc.Core.Test (6)
AcceptedAtActionResultTests.cs (1)
126
.Callback((OutputFormatterWriteContext context) => actual = context.
Object
)
AcceptedAtRouteResultTests.cs (1)
57
.Callback((OutputFormatterWriteContext context) => actual = context.
Object
)
AcceptedResultTests.cs (1)
53
.Callback((OutputFormatterWriteContext context) => actual = context.
Object
)
Infrastructure\ControllerActionInvokerTest.cs (1)
1728
await c.HttpContext.Response.WriteAsync(c.
Object
.ToString());
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
245
return context.HttpContext.Response.WriteAsJsonAsync(context.
Object
);
Infrastructure\ObjectResultExecutorTest.cs (1)
455
Assert.Null(formatterContext.
Object
);
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
XmlDataContractSerializerOutputFormatter.cs (1)
227
var value = context.
Object
;
XmlSerializerOutputFormatter.cs (1)
206
var value = context.
Object
;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonOutputFormatter.cs (1)
152
var value = context.
Object
;