private bool RaiseAfterRecordWrite(object target, int index, string state)
 {
     if (_callbackRecord == null)
     {
         return(true);
     }
     return(ChoFuncEx.RunWithIgnoreError(() => _callbackRecord.AfterRecordWrite(target, index, state), true));
 }
Beispiel #2
0
 private bool RaiseAfterRecordWrite(object target, long index, object state)
 {
     if (Writer != null && Writer.HasAfterRecordWriteSubscribed)
     {
         return(ChoFuncEx.RunWithIgnoreError(() => Writer.RaiseAfterRecordWrite(target, index, state), true));
     }
     else if (_callbackRecordWrite != null)
     {
         return(ChoFuncEx.RunWithIgnoreError(() => _callbackRecordWrite.AfterRecordWrite(target, index, state), true));
     }
     return(true);
 }