/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Workspaces/Remote/ServiceHub/Host/IAssetSource.cs
26 строк
914 B
Cyrus Najmabadi
Change all messages to pass back their checksum. Switch to callback style
14 апр 2024, 00:10
14 апр 2024, 00:10
939f76c
Код
Авторство
О чём код?
// 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; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Serialization; namespace Microsoft.CodeAnalysis.Remote; /// <summary> /// Provides assets given their checksums. /// </summary> internal interface IAssetSource { /// <param name="callback">Will be called back once per checksum in <paramref name="checksums"/> in the exact order of that array.</param> ValueTask GetAssetsAsync<T, TArg>( Checksum solutionChecksum, AssetPath assetPath, ReadOnlyMemory<Checksum> checksums, ISerializerService serializerService, Action<Checksum, T, TArg> callback, TArg arg, CancellationToken cancellationToken); }