public async Task <bool> Init(AppContextBase context) { foreach (PluginInfo item in PluginList) { try { var result = await item.Instance.Init(context); item.SetInitFail(result); } catch (Exception ex) { item.SetInitFail(false); } } return(true); }
public Task <bool> Stop(AppContextBase context) { throw new NotImplementedException(); }
public AppContextBase(IServiceCollection services) { Current = this; Service = services; }