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; }
public FieldAppService(IDepotCache depotCache, IWorkplaceCache workplaceCache, IWorkerCache workerCache, IVehicleCache vehicleCache, IPostCache postCache, IWorkRoleCache workRoleCache, IGasStationCache gasStationCache, IRepository <Worker> workerRepository, IRepository <WorkerFile> workerFileRepository, IRepository <Asset> assetRepository) { _depotCache = depotCache; _workplaceCache = workplaceCache; _workerCache = workerCache; _vehicleCache = vehicleCache; _postCache = postCache; _workRoleCache = workRoleCache; _gasStationCache = gasStationCache; _workerRepository = workerRepository; _workerFileRepository = workerFileRepository; _assetRepository = assetRepository; }