Beispiel #1
0
        protected virtual void RaiseSyncError(
            Exception e         = null,
            string errorMessage = null,
            SyncErrorEventArgs.ErrorSeverity errorSeverity = SyncErrorEventArgs.ErrorSeverity.Minor)
        {
            SyncErrorEventArgs args = new SyncErrorEventArgs()
            {
                Exception     = e,
                NameOfElement = Name,
                Severity      = errorSeverity,
                ErrorMessage  = errorMessage,
                TimeStamp     = DateTime.Now,
                TypeOfElement = GetType()
            };

            SyncErrorRaised?.Invoke(this, args);
        }
Beispiel #2
0
 protected virtual void OnSyncErrorRaised(object sender, SyncErrorEventArgs e)
 {
     SyncErrorRaised?.Invoke(sender, e);
 }