Exemple #1
0
 private bool RaiseAfterRecordLoad(object target, Tuple <int, string> pair)
 {
     if (_callbackRecord == null)
     {
         return(true);
     }
     return(ChoFuncEx.RunWithIgnoreError(() => _callbackRecord.AfterRecordLoad(target, pair.Item1, pair.Item2), true));
 }
 private bool RaiseAfterRecordLoad(object target, Tuple <long, JObject> pair)
 {
     if (_callbackRecord != null)
     {
         return(ChoFuncEx.RunWithIgnoreError(() => _callbackRecord.AfterRecordLoad(target, pair.Item1, pair.Item2), true));
     }
     else if (Reader != null)
     {
         return(ChoFuncEx.RunWithIgnoreError(() => Reader.RaiseAfterRecordLoad(target, pair.Item1, pair.Item2), true));
     }
     return(true);
 }
        private bool RaiseAfterRecordLoad(object target, Tuple <long, string> pair, ref bool skip)
        {
            bool ret = true;
            bool sp  = false;

            if (_callbackRecord != null)
            {
                ret = ChoFuncEx.RunWithIgnoreError(() => _callbackRecord.AfterRecordLoad(target, pair.Item1, pair.Item2, ref sp), true);
            }
            else if (Reader != null)
            {
                ret = ChoFuncEx.RunWithIgnoreError(() => Reader.RaiseAfterRecordLoad(target, pair.Item1, pair.Item2, ref sp), true);
            }
            skip = sp;
            return(ret);
        }