IPluginMarketService 接口
- 程序集
- ClassIsland.Core.dll
插件市场服务。
public interface IPluginMarketService : INotifyPropertyChanged
- 继承成员
属性
Exception
插件源加载异常
Exception? Exception { get; set; }
属性值
Indexes
已加载的插件源
ObservableDictionary<string, PluginIndex> Indexes { get; }
属性值
IsLoadingPluginSource
是否正在加载插件源
bool IsLoadingPluginSource { get; set; }
属性值
MergedPlugins
已将插件仓库与本地插件合并的全部插件
ObservableDictionary<string, PluginInfo> MergedPlugins { get; set; }
属性值
PluginSourceDownloadProgress
插件源加载进度
double PluginSourceDownloadProgress { get; set; }
属性值
方法
LoadPluginSource()
重载本地插件源
void LoadPluginSource()
RefreshPluginSourceAsync()
刷新插件源。
Task RefreshPluginSourceAsync()
返回
RequestDownloadPlugin(string)
请求下载插件
void RequestDownloadPlugin(string id)
参数
id
string要下载的插件id
事件
RestartRequested
请求重启事件
event EventHandler? RestartRequested