internal EPIMeterValueDictionary ForceMeterReadAndGetLatest(MonitorExecutionContext context, MonitorEntity_MsgTgt target) { this.ForceMeterRead(context, target); EPIMeterValueDictionary result = new EPIMeterValueDictionary(); result.GetLatestMeters(context.G2HMessage.InstallationNo, EPIMeterValueTypes.Start); return(result); }
internal void ForceMeterReadAndGetLatest(MonitorExecutionContext context, MonitorEntity_MsgTgt target, Action <int, int, int, int> action) { int installationNo = context.G2HMessage.InstallationNo; EPIMeterValueTypes valueType = EPIMeterValueTypes.Start; using (EPIMeterValueDictionary meterValues = this.ForceMeterReadAndGetLatest(context, target)) { action(installationNo, (int)meterValues[EPIMeterTypes.Handpay][valueType], (int)meterValues[EPIMeterTypes.Jackpot][valueType], (int)meterValues[EPIMeterTypes.VouchersOut][valueType]); } }
internal EPIMeterValueDictionary ForceMeterReadAndGetLatest(MonitorExecutionContext context, MonitorEntity_MsgTgt target) { this.ForceMeterRead(context, target); EPIMeterValueDictionary result = new EPIMeterValueDictionary(); result.GetLatestMeters(context.G2HMessage.InstallationNo, EPIMeterValueTypes.Start); return result; }