IExtensionMetadataCache.InsertExtensionDataAsync<T> Method

Definition

Updates specified section entries for an extension.

C#
public System.Threading.Tasks.Task<bool> InsertExtensionDataAsync<T>(Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken extension, System.Collections.Generic.IEnumerable<string> metadataFilePaths, string dataMoniker, Func<System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,T>>> updateFunction, System.Threading.CancellationToken cancellationToken);

Type Parameters

T

Target type to use for serialization.

Parameters

extension
ExtensionIdentificationToken

Extension identifier.

metadataFilePaths
IEnumerable<String>

File paths to utilize for time stamp checks in cache verification.

dataMoniker
String

Data type moniker.

updateFunction
Func<Task<IReadOnlyDictionary<String,T>>>

Async update function to call if extension needs to be updated. Key represents the section name.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

return true if extension was up to date and no action was taken.

Applies to

Proizvod Verzije
Visual Studio SDK 2022