private void RaiseEndLoad(object state)
 {
     if (Configuration.NotifyRecordReadObject == null)
     {
         return;
     }
     ChoActionEx.RunWithIgnoreError(() => Configuration.NotifyRecordReadObject.EndLoad(state));
 }
 private void RaiseEndWrite(object state)
 {
     if (_callbackRecord == null)
     {
         return;
     }
     ChoActionEx.RunWithIgnoreError(() => _callbackRecord.EndWrite(state));
 }
Esempio n. 3
0
 internal void RaiseEndLoad(object state)
 {
     if (_record == null)
     {
         return;
     }
     ChoActionEx.RunWithIgnoreError(() => _record.EndLoad(state));
 }
Esempio n. 4
0
 private void RaiseEndLoad(object state)
 {
     if (_callbackRecord != null)
     {
         ChoActionEx.RunWithIgnoreError(() => _callbackRecord.EndLoad(state));
     }
     else if (Reader != null)
     {
         ChoActionEx.RunWithIgnoreError(() => Reader.RaiseEndLoad(state));
     }
 }
Esempio n. 5
0
 private void RaiseEndWrite(object state)
 {
     if (_callbackRecord != null)
     {
         ChoActionEx.RunWithIgnoreError(() => _callbackRecord.EndWrite(state));
     }
     else if (Writer != null)
     {
         ChoActionEx.RunWithIgnoreError(() => Writer.RaiseEndWrite(state));
     }
 }
Esempio n. 6
0
 private void RaiseEndLoad(object state)
 {
     if (Configuration.NotifyFileReadObject != null)
     {
         ChoActionEx.RunWithIgnoreError(() => Configuration.NotifyFileReadObject.EndLoad(state));
     }
     else if (Reader != null)
     {
         ChoActionEx.RunWithIgnoreError(() => Reader.RaiseEndLoad(state));
     }
 }
Esempio n. 7
0
 private void RaiseEndLoad(object state)
 {
     if (Reader != null && Reader.HasEndLoadSubscribed)
     {
         ChoActionEx.RunWithIgnoreError(() => Reader.RaiseEndLoad(state));
     }
     else if (_callbackFileRead != null)
     {
         ChoActionEx.RunWithIgnoreError(() => _callbackFileRead.EndLoad(state));
     }
 }
 private void RaiseFileHeaderArrange(List <string> fields)
 {
     if (_callbackFileHeaderArrange != null)
     {
         ChoActionEx.RunWithIgnoreError(() => _callbackFileHeaderArrange.FileHeaderArrange(fields));
     }
     else if (Writer != null)
     {
         ChoActionEx.RunWithIgnoreError(() => Writer.RaiseFileHeaderArrange(fields));
     }
 }
Esempio n. 9
0
 private void RaiseEndWrite(object state)
 {
     if (Writer != null && Writer.HasEndWriteSubscribed)
     {
         ChoActionEx.RunWithIgnoreError(() => Writer.RaiseEndWrite(state));
     }
     else if (_callbackFileWrite != null)
     {
         ChoActionEx.RunWithIgnoreError(() => _callbackFileWrite.EndWrite(state));
     }
 }
Esempio n. 10
0
 private void RaiseEndWrite(object state)
 {
     if (Configuration.NotifyRecordReadObject != null)
     {
         ChoActionEx.RunWithIgnoreError(() => Configuration.NotifyRecordWriteObject.EndWrite(state));
     }
     else if (Writer != null)
     {
         ChoActionEx.RunWithIgnoreError(() => Writer.RaiseEndWrite(state));
     }
 }
Esempio n. 11
0
        private void RaiseFileHeaderArrange(ref List <string> fields)
        {
            var fs = fields;

            if (_callbackFileHeaderArrange != null)
            {
                ChoActionEx.RunWithIgnoreError(() => _callbackFileHeaderArrange.FileHeaderArrange(fs));
            }
            else if (Writer != null)
            {
                ChoActionEx.RunWithIgnoreError(() => Writer.RaiseFileHeaderArrange(ref fs));
            }

            if (fs != null)
            {
                fields = fs;
            }
        }