public WeixinServiceRegister AddWeixinServerHost(Action <WeixinServerHostConfig> config) { var defaultConfig = new WeixinServerHostConfig(); config(defaultConfig); DependencyManager.Register(defaultConfig); return(this); }
public BaseApi() { this.Logger = DependencyManager.Resolve <ILogger>(); this.HttpService = DependencyManager.Resolve <IHttpService>(); this.ServerHostConfig = DependencyManager.Resolve <WeixinServerHostConfig>(); }