-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
115 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
|
||
namespace S22.Imap { | ||
/// <summary> | ||
/// Provides data for IMAP idle error events. | ||
/// </summary> | ||
public class IdleErrorEventArgs : EventArgs { | ||
/// <summary> | ||
/// Initializes a new instance of the IdleErrorEventArgs class. | ||
/// </summary> | ||
/// <param name="exception">The exception that causes the event.</param> | ||
/// <param name="client">The instance of the ImapClient class that raised the event.</param> | ||
/// <exception cref="ArgumentNullException">The exception parameter or the client parameter | ||
/// is null.</exception> | ||
internal IdleErrorEventArgs(Exception exception, ImapClient client) { | ||
exception.ThrowIfNull("exception"); | ||
client.ThrowIfNull("client"); | ||
Exception = exception; | ||
Client = client; | ||
} | ||
|
||
/// <summary> | ||
/// The exception that caused the error event. | ||
/// </summary> | ||
public Exception Exception { | ||
get; | ||
private set; | ||
} | ||
|
||
/// <summary> | ||
/// The instance of the ImapClient class that raised the event. | ||
/// </summary> | ||
public ImapClient Client { | ||
get; | ||
private set; | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Any particular reason why this event wasn't also added to the
IImapClient
interface?