IList <int> IAlarmWorkflowService.GetOperationIds(string maxAge, string onlyNonAcknowledged, string limitAmount) { // Cast to correct values int rMaxAge = 8; bool rOnlyNonAcknowledged = true; int rLimitAmount = 10; // Try to parse the values (if one fails to pass just go on and take the default values from above) int.TryParse(maxAge, out rMaxAge); bool.TryParse(onlyNonAcknowledged, out rOnlyNonAcknowledged); int.TryParse(limitAmount, out rLimitAmount); return(_operationStore.GetOperationIds(rMaxAge, rOnlyNonAcknowledged, rLimitAmount)); }
IList <int> IAlarmWorkflowServiceInternal.GetOperationIds(int maxAge, bool onlyNonAcknowledged, int limitAmount) { return(_operationStore.GetOperationIds(maxAge, onlyNonAcknowledged, limitAmount)); }