示例#1
0
        internal virtual void OnErrorOccurred(Exception innerException)
        {
            var eventargs = new FileTransmissionErrorOccurEventArgs(innerException);

            if (ErrorOccurred != null)
            {
                ErrorOccurred(this, eventargs);
            }
            if (!eventargs.Continue)
            {
                throw innerException;
            }
        }
示例#2
0
 internal virtual void OnErrorOccurred(Exception innerException)
 {
     var eventargs = new FileTransmissionErrorOccurEventArgs(innerException);
     if (ErrorOccurred != null)
         ErrorOccurred(this, eventargs);
     if (!eventargs.Continue)
         throw innerException;
 }