3 instantiations of RequestHandlerMetadata
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
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.CommonLanguageServerProtocol.Framework.Package (25)
AbstractHandlerProvider.cs (2)
19/// Gets the <see cref="RequestHandlerMetadata"/>s for all registered methods. 21public abstract ImmutableArray<RequestHandlerMetadata> GetRegisteredMethods();
AbstractLanguageServer.cs (1)
185public abstract TRequest DeserializeRequest<TRequest>(object? serializedRequest, RequestHandlerMetadata metadata);
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)
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);
NewtonsoftLanguageServer.cs (1)
28public override TRequest DeserializeRequest<TRequest>(object? serializedRequest, RequestHandlerMetadata metadata)
QueueItem.cs (2)
86public async Task<(TRequestContext, TRequest)?> CreateRequestContextAsync<TRequest>(IMethodHandler handler, RequestHandlerMetadata requestHandlerMetadata, AbstractLanguageServer<TRequestContext> languageServer, CancellationToken cancellationToken) 114RequestHandlerMetadata requestHandlerMetadata,
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)
SystemTextJsonLanguageServer.cs (1)
28public override TRequest DeserializeRequest<TRequest>(object? serializedRequest, RequestHandlerMetadata metadata)