예제 #1
0
        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);
        }
예제 #2
0
 public Task <bool> Stop(AppContextBase context)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public AppContextBase(IServiceCollection services)
 {
     Current = this;
     Service = services;
 }