/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/ExternalAccess/CompilerDeveloperSDK/Handler/RequestContext.cs
19 строк
919 B
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. namespace Microsoft.CodeAnalysis.ExternalAccess.CompilerDeveloperSdk; internal readonly struct RequestContext(LspRequestContext context) { /// <inheritdoc cref="LspRequestContext.Workspace"/> internal Workspace? Workspace => context.Workspace; /// <inheritdoc cref="LspRequestContext.Solution"/> internal Solution? Solution => context.Solution; /// <inheritdoc cref="LspRequestContext.Document"/> internal Document? Document => context.Document; /// <inheritdoc cref="LspRequestContext.GetRequiredDocument()"/> internal Document GetRequiredDocument() => context.GetRequiredDocument(); internal T GetRequiredService<T>() where T : class => context.GetRequiredService<T>(); }