3 instantiations of RequestHandlerMetadata
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (3)
28var requestHandlerMetadata = new RequestHandlerMetadata(method, requestTypeRef, responseTypeRef, language); 66new RequestHandlerMetadata(methodName, requestTypeRef, responseTypeRef, language), 88new RequestHandlerMetadata(methodName, requestTypeRef, responseTypeRef, language),
25 references to RequestHandlerMetadata
Microsoft.CodeAnalysis.LanguageServer.Protocol (25)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractHandlerProvider.cs (2)
19/// Gets the <see cref="RequestHandlerMetadata"/>s for all registered methods. 21public abstract ImmutableArray<RequestHandlerMetadata> GetRegisteredMethods();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLanguageServer.cs (1)
185public abstract TRequest DeserializeRequest<TRequest>(object? serializedRequest, RequestHandlerMetadata metadata);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (7)
21private FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>>? _requestHandlers; 28var requestHandlerMetadata = new RequestHandlerMetadata(method, requestTypeRef, responseTypeRef, language); 39public override ImmutableArray<RequestHandlerMetadata> GetRegisteredMethods() 45private FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>> GetRequestHandlers() 48private static FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>> CreateMethodToHandlerMap(ILspServices lspServices, AbstractTypeRefResolver typeRefResolver) 50var builder = new Dictionary<RequestHandlerMetadata, Lazy<IMethodHandler>>(); 127static void VerifyHandlers(IEnumerable<RequestHandlerMetadata> requestHandlerKeys)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\IQueueItem.cs (2)
24/// <param name="context">The context created by <see cref="CreateRequestContextAsync{TRequest}(IMethodHandler, RequestHandlerMetadata, AbstractLanguageServer{TRequestContext}, CancellationToken)"/>.</param> 39Task<(TRequestContext, TRequest)?> CreateRequestContextAsync<TRequest>(IMethodHandler handler, RequestHandlerMetadata requestHandlerMetadata, AbstractLanguageServer<TRequestContext> languageServer, CancellationToken cancellationToken);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\NewtonsoftLanguageServer.cs (1)
28public override TRequest DeserializeRequest<TRequest>(object? serializedRequest, RequestHandlerMetadata metadata)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\QueueItem.cs (2)
86public async Task<(TRequestContext, TRequest)?> CreateRequestContextAsync<TRequest>(IMethodHandler handler, RequestHandlerMetadata requestHandlerMetadata, AbstractLanguageServer<TRequestContext> languageServer, CancellationToken cancellationToken) 114RequestHandlerMetadata requestHandlerMetadata,
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (9)
78private readonly FrozenDictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata Metadata, IMethodHandler Handler, MethodInfo MethodInfo)>>> _handlerInfoMap; 96private static FrozenDictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>> BuildHandlerMap(AbstractHandlerProvider handlerProvider, AbstractTypeRefResolver typeRefResolver) 98var genericMethodMap = new Dictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>>(); 105var languages = new Dictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>(); 106foreach (var metadata in methodGroup) 301/// Reflection invokes <see cref="ProcessQueueCoreAsync{TRequest, TResponse}(IQueueItem{TRequestContext}, IMethodHandler, RequestHandlerMetadata, ConcurrentDictionary{Task, CancellationTokenSource}, CancellationTokenSource?, CancellationToken)"/> 306RequestHandlerMetadata metadata, 330RequestHandlerMetadata metadata, 411private (RequestHandlerMetadata Metadata, IMethodHandler Handler, MethodInfo MethodInfo) GetHandlerForRequest(IQueueItem<TRequestContext> work, string language)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\SystemTextJsonLanguageServer.cs (1)
28public override TRequest DeserializeRequest<TRequest>(object? serializedRequest, RequestHandlerMetadata metadata)