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