/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/ExternalAccess/CompilerDeveloperSDK/Handler/AbstractCompilerDeveloperSdkLspServiceRequestHandler.cs
22 строки
1 KB
Tomáš Matoušek
ExternalAccess layering (#73887)
07 июн 2024, 20:55
Не верифицирован
07 июн 2024, 20:55
e867be9
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.LanguageServer.Handler; using Microsoft.CommonLanguageServerProtocol.Framework; namespace Microsoft.CodeAnalysis.ExternalAccess.CompilerDeveloperSdk; internal abstract class AbstractCompilerDeveloperSdkLspServiceRequestHandler<TRequest, TResponse> : ILspServiceRequestHandler<TRequest, TResponse> { public abstract bool MutatesSolutionState { get; } public abstract bool RequiresLSPSolution { get; } public abstract Task<TResponse> HandleRequestAsync(TRequest request, RequestContext context, CancellationToken cancellationToken); bool IMethodHandler.MutatesSolutionState => MutatesSolutionState; bool ISolutionRequiredHandler.RequiresLSPSolution => RequiresLSPSolution; Task<TResponse> IRequestHandler<TRequest, TResponse, LspRequestContext>.HandleRequestAsync(TRequest request, LspRequestContext context, CancellationToken cancellationToken) => HandleRequestAsync(request, new RequestContext(context), cancellationToken); }