static public TencentConfigInfo Load()
        {
            TencentConfigService service = ServiceLoader.GetService <TencentConfigService>();

            return(service.Load(new TokenLogonInfo {
                Id = "", Name = "系统自动"
            }));
        }
예제 #2
0
        public TencentSmsService()
        {
            var config = TencentConfigService.Load();

            appid           = config.AppId;
            appkey          = config.AppKey;
            SmsSign         = config.SmsSign;
            this.httpclient = new DefaultHTTPClient();
        }