Beispiel #1
0
        public WeixinServiceRegister AddWeixinServerHost(Action <WeixinServerHostConfig> config)
        {
            var defaultConfig = new WeixinServerHostConfig();

            config(defaultConfig);

            DependencyManager.Register(defaultConfig);

            return(this);
        }
Beispiel #2
0
 public BaseApi()
 {
     this.Logger           = DependencyManager.Resolve <ILogger>();
     this.HttpService      = DependencyManager.Resolve <IHttpService>();
     this.ServerHostConfig = DependencyManager.Resolve <WeixinServerHostConfig>();
 }