/// <summary> /// 加载指定插件 /// </summary> /// <param name="onloadCall">是否是飞鸽传书初始化时候的请求</param> internal bool LoadService(bool onloadCall) { if (ServiceProvider == null || State == ServiceState.Running || !ServiceProvider.CheckCanLoad(onloadCall) || (!ServiceProvider.SupportLoad && !onloadCall)) { return(false); } else { ServiceProvider.Startup(); State = ServiceState.Running; return(true); } }