public InstructionReceiveService(string clientId)
 {
     _clientId = clientId;
     _logger = CdevContainer.Ins.Resolve<ILogger>();
     _configService = CdevContainer.Ins.Resolve<IConfigService>();
     _name = _configService.GetByKey("InstructionActiveMQName");
     _uri = _configService.GetByKey("InstructionActiveMQUri");
 }
Example #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public UploadController(ILogger logger, IConfigService configService, IMediaService mediaService)
 {
     _logger = logger;
     _configService = configService;
     _mediaService = mediaService;
     saveRootPath = _configService.GetByKey<string>("UploadRootDir", "UploadFiles");
 }
Example #3
0
 public AWeChatService(IConfigService configService, IRepository rep, ILogger logger)
 {
     _configService = configService;
     _rep = rep;
     _logger = logger;
     _config.AppId = _configService.GetByKey("WeChatAppId");
     _config.AppSecret = _configService.GetByKey("WeChatAppSecret");
     _config.Token = _configService.GetByKey("WeChatToken");
     _config.WeChatId = _configService.GetByKey("WeChatId");
     _config.Host = _configService.GetByKey("BaseSiteUrl");
     _config.ApiUrl = _configService.GetByKey("WeChatApiUrl");
 }
Example #4
0
 public MapService(ILogger logger, IConfigService configService)
 {
     _logger = logger;
     _configService = configService;
     _baduKey = _configService.GetByKey("MapBaiduAk", "8a5a51e831ab2b4e667db38c71b4f893");
 }
Example #5
0
 public PushService(IConfigService configService, ILogger logger)
 {
     _configService = configService;
     _logger = logger;
     _client = new JPushClient(_configService.GetByKey("PushAppKey"), _configService.GetByKey("PushMasterSecret"));
 }
 public InstructionSendService(ILogger logger, IConfigService configService)
 {
     _logger = logger;
     _configService = configService;
     _name = _configService.GetByKey("InstructionActiveMQName");
     _uri = _configService.GetByKey("InstructionActiveMQUri");
     Start();
 }