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

方法

LoadPluginSource()

重载本地插件源

void LoadPluginSource()

RefreshPluginSourceAsync()

刷新插件源。

Task RefreshPluginSourceAsync()

返回

Task

RequestDownloadPlugin(string)

请求下载插件

void RequestDownloadPlugin(string id)

参数

id string

要下载的插件id

事件

RestartRequested

请求重启事件

event EventHandler? RestartRequested

事件类型

EventHandler