コード例 #1
0
        public WwApp02Controller(
            IHostingEnvironment env,
            IHubContext <MyChatHub> context,
            IWeixinAppService weixinAppService,
            IVehicleRecordAppService recordAppService,
            IGasStationCache gasStationCache,
            IOilTypeCache oilTypeCache,
            IVehicleMTTypeCache vehicleMTTypeCache,
            IVehicleCache vehicleCache,
            IOutletCache outletCache)
        {
            var appConfiguration = env.GetAppConfiguration();

            _corpId  = appConfiguration["SenparcWeixinSetting:CorpId"];
            _secret  = appConfiguration[string.Format("SenparcWeixinSetting:{0}:Secret", "App02")];
            _agentId = appConfiguration[string.Format("SenparcWeixinSetting:{0}:AgentId", "App02")];

            _context          = context;
            _weixinAppService = weixinAppService;
            _recordAppService = recordAppService;

            _gasStationCache    = gasStationCache;
            _oilTypeCache       = oilTypeCache;
            _vehicleMTTypeCache = vehicleMTTypeCache;
            _vehicleCache       = vehicleCache;
            _outletCache        = outletCache;
        }
コード例 #2
0
ファイル: TypeAppService.cs プロジェクト: jiangyimin/Clc
 public TypeAppService(DutyProvider dutyProvider,
                       IArticleTypeCache articleTypeCache,
                       IPostCache postCache,
                       IRouteTypeCache routeTypeCache,
                       ITaskTypeCache taskTypeCache,
                       IWorkRoleCache workRoleCache,
                       IWorkplaceCache workplaceCache,
                       IOilTypeCache oilTypeCache,
                       IVehicleMTTypeCache vehicleMTTypeCache)
 {
     _dutyProvider       = dutyProvider;
     _articleTypeCache   = articleTypeCache;
     _postCache          = postCache;
     _routeTypeCache     = routeTypeCache;
     _taskTypeCache      = taskTypeCache;
     _workRoleCache      = workRoleCache;
     _workplaceCache     = workplaceCache;
     _oilTypeCache       = oilTypeCache;
     _vehicleMTTypeCache = vehicleMTTypeCache;
 }