/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Workspaces/Remote/ServiceHub/Services/EditAndContinue/HotReloadLoggerProxy.cs
26 строк
998 B
Tomáš Matoušek
Fixes Hot reload logging in DevKit (#84179)
20 июн 2026, 02:32
Не верифицирован
20 июн 2026, 02:32
db649bc
Код
Авторство
О чём код?
// 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.BrokeredServices; using Microsoft.ServiceHub.Framework; using Microsoft.VisualStudio.Debugger.Contracts.HotReload; namespace Microsoft.CodeAnalysis.EditAndContinue; internal sealed class HotReloadLoggerProxy(IServiceBroker serviceBroker) : BrokeredServiceProxy<IHotReloadLogger>( serviceBroker, #if DEVKIT BrokeredServiceDescriptors.HotReloadLoggerServiceLegacy #else BrokeredServiceDescriptors.HotReloadLoggerService #endif ), IHotReloadLogger { public ValueTask LogAsync(HotReloadLogMessage message, CancellationToken cancellationToken) => InvokeAsync((service, cancellationToken) => service.LogAsync(message, cancellationToken), cancellationToken); }