Beispiel #1
0
 public WxMenuService(
     IOptions <WxOption> wxOption,
     ILogger <WxMenuService> logger,
     IWxIdentityService identityService)
     : this(new WxApiRepository(), wxOption, logger, identityService)
 {
 }
Beispiel #2
0
 public WxBaseService(
     IOptions <WxOption> option,
     IWxIdentityService identityService)
 {
     _option          = option.Value;
     _identityService = identityService;
 }
Beispiel #3
0
        public WxMenuService(IWxApiRepository apiRepository, IOptions <WxOption> option, ILogger <WxMenuService> logger, IWxIdentityService identityService)
            : base(option, identityService)
        {
            _logger        = logger;
            _apiRepository = apiRepository;

            _logger.LogInformation("======== WxMenuService initiated. ===========\r\n");
        }
        //Frank: 这是IEnumerable方案来实现查找WxMessage对应的Handler的方法。未采用。
        //public IEnumerable<IWxMessageHandler> _handlers;

        #region 构造函数
        public WxMessageService(IOptions <WxOption> option, ILogger <WxMessageService> logger, IServiceProvider provider, IWxIdentityService identityService)
            : base(option, identityService)
        {
            _provider = provider;
            _logger   = logger;
            //_handlers = handlers;
            logger.LogTrace("========WxMessageService initiated.===========");
        }