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