Table of Contents

IPluginMarketService 接口

命名空间
ClassIsland.Core.Abstractions.Services
程序集
ClassIsland.Core.dll

插件市场服务。

public interface IPluginMarketService : INotifyPropertyChanged
继承成员

属性

Exception

插件源加载异常

Exception? Exception { get; set; }

属性值

Exception

Indexes

已加载的插件源

ObservableDictionary<string, PluginIndex> Indexes { get; }

属性值

ObservableDictionary<string, PluginIndex>

IsLoadingPluginSource

是否正在加载插件源

bool IsLoadingPluginSource { get; set; }

属性值

bool

MergedPlugins

已将插件仓库与本地插件合并的全部插件

ObservableDictionary<string, PluginInfo> MergedPlugins { get; set; }

属性值

ObservableDictionary<string, PluginInfo>

PluginSourceDownloadProgress

插件源加载进度

double PluginSourceDownloadProgress { get; set; }

属性值

double

方法

GetIndexInfos()

获取索引信息

IEnumerable<PluginIndexInfo> GetIndexInfos()

返回

IEnumerable<PluginIndexInfo>

获取到的索引信息

LoadPluginSource()

重载本地插件源

void LoadPluginSource()

RefreshPluginSourceAsync()

刷新插件源。

Task RefreshPluginSourceAsync()

返回

Task

RequestDownloadPlugin(string)

请求下载插件

void RequestDownloadPlugin(string id)

参数

id string

要下载的插件id

ResolveMarketPlugin(string)

解析商店插件信息

PluginIndexItem? ResolveMarketPlugin(string id)

参数

id string

插件 ID

返回

PluginIndexItem

解析的插件信息,如果未找到对应 ID 的插件,将返回 null

事件

RestartRequested

请求重启事件

event EventHandler? RestartRequested

事件类型

EventHandler