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