1 instantiation of JsonTranscodingServerCallContext
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\CallHandlers\ServerCallHandlerBase.cs (1)
44
var serverCallContext = new
JsonTranscodingServerCallContext
(httpContext, MethodInvoker.Options, MethodInvoker.Method, DescriptorInfo, Logger);
14 references to JsonTranscodingServerCallContext
Microsoft.AspNetCore.Grpc.JsonTranscoding (14)
Internal\CallHandlers\ServerCallHandlerBase.cs (3)
44
var
serverCallContext = new JsonTranscodingServerCallContext(httpContext, MethodInvoker.Options, MethodInvoker.Method, DescriptorInfo, Logger);
67
static async Task AwaitHandleCall(
JsonTranscodingServerCallContext
serverCallContext, Method<TRequest, TResponse> method, bool isStreaming, JsonSerializerOptions serializerOptions, Task handleCall)
80
protected abstract Task HandleCallAsyncCore(HttpContext httpContext,
JsonTranscodingServerCallContext
serverCallContext);
Internal\CallHandlers\ServerStreamingServerCallHandler.cs (1)
27
protected override async Task HandleCallAsyncCore(HttpContext httpContext,
JsonTranscodingServerCallContext
serverCallContext)
Internal\CallHandlers\UnaryServerCallHandler.cs (1)
29
protected override async Task HandleCallAsyncCore(HttpContext httpContext,
JsonTranscodingServerCallContext
serverCallContext)
Internal\HttpContextStreamWriter.cs (3)
13
private readonly
JsonTranscodingServerCallContext
_context;
19
public HttpContextStreamWriter(
JsonTranscodingServerCallContext
context, JsonSerializerOptions serializerOptions)
51
static (state) => ((
JsonTranscodingServerCallContext
)state!).HttpContext.Abort(),
Internal\JsonRequestHelpers.cs (6)
183
public static async ValueTask<TRequest> ReadMessage<TRequest>(
JsonTranscodingServerCallContext
serverCallContext, JsonSerializerOptions serializerOptions) where TRequest : class
318
private static async ValueTask<IMessage> ReadHttpBodyAsync(
JsonTranscodingServerCallContext
serverCallContext)
334
private static async ValueTask<byte[]> ReadDataAsync(
JsonTranscodingServerCallContext
serverCallContext)
362
private static List<FieldDescriptor>? GetPathDescriptors(
JsonTranscodingServerCallContext
serverCallContext, IMessage requestMessage, string path)
371
public static async ValueTask SendMessage<TResponse>(
JsonTranscodingServerCallContext
serverCallContext, JsonSerializerOptions serializerOptions, TResponse message, CancellationToken cancellationToken) where TResponse : class
407
private static bool CanBindQueryStringVariable(
JsonTranscodingServerCallContext
serverCallContext, string variable)