메소드 | 설명 | |
---|---|---|
Add ( |
Adds a critical, unexpected error.
|
|
Clear ( ) : void |
Clears the list. Only errors that have been already raised by OnErrorFromBackgroundThreads are removed from the internal buffer: it can be safely called at any time.
|
|
Clear ( int &cleared, int &waitingToBeRaisedErrors ) : void |
Clears the list. Only errors that have been already raised by OnErrorFromBackgroundThreads are removed from the internal buffer: it can be safely called at any time.
|
|
CriticalErrorCollector ( ) : System |
Initializes a new CriticalErrorCollector with a default Capacity set to 128.
|
|
DoRaiseInBackground ( object unusedState ) : void | ||
ToArray ( ) : Error[] |
Obtains a copy of the last (up to) Capacity errors from oldest to newest. The newest may have not been raised by OnErrorFromBackgroundThreads yet.
|
|
WaitOnErrorFromBackgroundThreadsPending ( ) : void |
Blocks the caller thread until no more event is waiting to be raised by OnErrorFromBackgroundThreads or is being processed. This is the right function to use instead of pooling OnErrorFromBackgroundThreadsPending.
|
메소드 | 설명 | |
---|---|---|
CreateEvent ( ) : ErrorEventArgs |
public Add ( |
||
ex | The unexpected exception. Must not be null. | |
comment | string | Comment associated to the error (such as the name of the culprit). Can be null. |
리턴 | void |
public Clear ( int &cleared, int &waitingToBeRaisedErrors ) : void | ||
cleared | int | Number of suppressed errors. |
waitingToBeRaisedErrors | int | The number of errors waiting to be raised. |
리턴 | void |
public DoRaiseInBackground ( object unusedState ) : void | ||
unusedState | object | |
리턴 | void |
public WaitOnErrorFromBackgroundThreadsPending ( ) : void | ||
리턴 | void |