private bool?RaiseDoWhile(Tuple <long, string> pair) { if (_callbackRecord != null) { long index = pair.Item1; object state = pair.Item2; bool? retValue = ChoFuncEx.RunWithIgnoreErrorNullableReturn <bool>(() => _callbackRecord.DoWhile(index, state)); return(retValue); } else if (Reader != null) { long index = pair.Item1; object state = pair.Item2; bool? retValue = ChoFuncEx.RunWithIgnoreError <bool?>(() => Reader.RaiseDoWhile(index, state)); return(retValue); } return(null); }
private bool?RaiseDoWhile(Tuple <long, string> pair) { if (Configuration.NotifyFileReadObject != null) { long index = pair.Item1; object state = pair.Item2; bool? retValue = ChoFuncEx.RunWithIgnoreErrorNullableReturn <bool>(() => Configuration.NotifyFileReadObject.DoWhile(index, state)); return(retValue); } else if (Reader != null) { long index = pair.Item1; object state = pair.Item2; bool? retValue = ChoFuncEx.RunWithIgnoreError <bool?>(() => Reader.RaiseDoWhile(index, state)); return(retValue); } return(null); }
private bool?RaiseDoWhile(Tuple <long, IDictionary <string, object> > pair) { if (Reader != null && Reader.HasDoWhileSubscribed) { long index = pair.Item1; object state = pair.Item2; bool? retValue = ChoFuncEx.RunWithIgnoreError <bool?>(() => Reader.RaiseDoWhile(index, state)); return(retValue); } else if (_callbackFileRead != null) { long index = pair.Item1; object state = pair.Item2; bool? retValue = ChoFuncEx.RunWithIgnoreErrorNullableReturn <bool>(() => _callbackFileRead.DoWhile(index, state)); return(retValue); } return(null); }