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