• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 24788042622

22 Apr 2026 03:47PM UTC coverage: 77.123% (+0.05%) from 77.076%
24788042622

push

github

web-flow
Merge pull request #1041 from DomCR/issue/1035_parse-hook

issue-1035 Add progress reporting to CAD file reading process

8457 of 11919 branches covered (70.95%)

Branch coverage included in aggregate %.

332 of 385 new or added lines in 12 files covered. (86.23%)

8 existing lines in 3 files now uncovered.

30460 of 38542 relevant lines covered (79.03%)

153328.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.89
/src/ACadSharp/IO/NotificationEventHandler.cs
1
using System;
2

3
namespace ACadSharp.IO;
4

5
/// <summary>
6
/// Represents the method that handles a notification event raised by an object.
7
/// </summary>
8
/// <param name="sender">The source of the event.</param>
9
/// <param name="e">A NotificationEventArgs object that contains the event data.</param>
10
public delegate void NotificationEventHandler(object sender, NotificationEventArgs e);
11

12
/// <summary>
13
/// Provides data for notification events, including the message, notification type, and any associated exception.
14
/// </summary>
15
/// <remarks>Use this class with event handlers to receive detailed information about notifications, such as
16
/// informational messages, warnings, or errors. The properties expose the notification message, its type, and an
17
/// optional exception if the notification is related to an error condition.</remarks>
18
public class NotificationEventArgs : EventArgs
19
{
20
        /// <summary>
21
        /// Gets the message.
22
        /// </summary>
23
        public string Message { get; }
128✔
24

25
        /// <summary>
26
        /// Gets the type of notification.
27
        /// </summary>
28
        public NotificationType NotificationType { get; }
183,900✔
29

30
        /// <summary>
31
        /// Gets the exception that caused the current operation to fail.
32
        /// </summary>
NEW
33
        public Exception Exception { get; }
×
34

35
        public NotificationEventArgs(string message, NotificationType notificationType = NotificationType.None, Exception exception = null)
279,889✔
36
        {
279,889✔
37
                this.Message = message;
279,889✔
38
                this.NotificationType = notificationType;
279,889✔
39
                this.Exception = exception;
279,889✔
40
        }
279,889✔
41
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc