/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/AbstractRequestScope.cs
33 строки
1 KB
Joey Robichaud
Reapply "Move to .NET 10 Preview 5 (#78906)"
08 июл 2025, 07:36
08 июл 2025, 07:36
1e5af11
Код
Авторство
О чём код?
// 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. // This is consumed as 'generated' code in a source package and therefore requires an explicit nullable enable #nullable enable using System; namespace Microsoft.CommonLanguageServerProtocol.Framework; internal abstract class AbstractRequestScope(string name) : IDisposable { public string Name { get; } = name; public string? Language { get; private set; } public abstract void RecordCancellation(); public abstract void RecordException(Exception exception); public abstract void RecordWarning(string message); public abstract void RecordExecutionStart(); /// <summary> /// Updates the telemetry metrics for the request with the handler's language. /// </summary> public void RecordHandlerLanguage(string language) { Language = language; } public abstract void Dispose(); }