// 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. #nullable enable using System.Threading; using System.Threading.Tasks; using Microsoft.VisualStudio.LanguageServer.Protocol; namespace Microsoft.CodeAnalysis.LanguageServer.Handler { internal abstract class AbstractRequestHandler : IRequestHandler { protected readonly ILspSolutionProvider SolutionProvider; protected AbstractRequestHandler(ILspSolutionProvider solutionProvider) { SolutionProvider = solutionProvider; } public abstract Task HandleRequestAsync(RequestType request, ClientCapabilities clientCapabilities, string? clientName, CancellationToken cancellationToken); } }