Table of Contents

Class PluginRegistryStore

Namespace
JD.AI.Core.Plugins
Assembly
JD.AI.Core.dll

Persists installed plugin metadata to a JSON registry.

public sealed class PluginRegistryStore
Inheritance
PluginRegistryStore
Inherited Members

Constructors

PluginRegistryStore(string?)

public PluginRegistryStore(string? registryPath = null)

Parameters

registryPath string

Properties

RegistryPath

public string RegistryPath { get; }

Property Value

string

Methods

FindAsync(string, CancellationToken)

public Task<InstalledPluginRecord?> FindAsync(string id, CancellationToken ct = default)

Parameters

id string
ct CancellationToken

Returns

Task<InstalledPluginRecord>

ListAsync(CancellationToken)

public Task<IReadOnlyList<InstalledPluginRecord>> ListAsync(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task<IReadOnlyList<InstalledPluginRecord>>

RemoveAsync(string, CancellationToken)

public Task<bool> RemoveAsync(string id, CancellationToken ct = default)

Parameters

id string
ct CancellationToken

Returns

Task<bool>

UpsertAsync(InstalledPluginRecord, CancellationToken)

public Task UpsertAsync(InstalledPluginRecord entry, CancellationToken ct = default)

Parameters

entry InstalledPluginRecord
ct CancellationToken

Returns

Task