Method | Description | |
---|---|---|
MySQLErrorStore ( ErrorStoreSettings settings ) : System |
Creates a new instance of SQLErrorStore with the given configuration.
|
|
MySQLErrorStore ( string connectionString, int displayCount = DefaultDisplayCount, int rollupSeconds = DefaultRollupSeconds ) : System |
Creates a new instance of SQLErrorStore with the specified connection string.
|
Method | Description | |
---|---|---|
DeleteAllErrors ( string applicationName = null ) : bool |
Deleted all errors in the log, by setting DeletionDate = UTC_DATE() in SQL
|
|
DeleteError ( System.Guid guid ) : bool |
Deletes an error, by setting DeletionDate = UTC_DATE() in SQL
|
|
DeleteErrors ( IEnumerable |
Deletes errors, by setting DeletionDate = UTC_DATE() in SQL
|
|
GetAllErrors ( List |
Retrieves all non-deleted application errors in the database
|
|
GetError ( System.Guid guid ) : Error |
Gets the error with the specified guid from SQL This can return a deleted error as well, there's no filter based on DeletionDate
|
|
GetErrorCount ( System.DateTime since = null, string applicationName = null ) : int |
Retrieves a count of application errors since the specified date, or all time if null
|
|
HardDeleteError ( System.Guid guid ) : bool |
Hard deletes an error, actually deletes the row from SQL rather than setting DeletionDate This is used to cleanup when testing the error store when attempting to come out of retry/failover mode after losing connection to SQL
|
|
LogError ( Error error ) : void |
Logs the error to SQL If the rollup conditions are met, then the matching error will have a DuplicateCount += @DuplicateCount (usually 1, unless in retry) rather than a distinct new row for the error
|
|
ProtectError ( Guid guid ) : bool |
Protects an error from deletion, by making IsProtected = 1 in the database
|
|
ProtectErrors ( IEnumerable |
Protects errors from deletion, by making IsProtected = 1 in the database
|
Method | Description | |
---|---|---|
GetConnection ( ) : |
protected DeleteAllErrors ( string applicationName = null ) : bool | ||
applicationName | string | |
return | bool |
protected DeleteError ( System.Guid guid ) : bool | ||
guid | System.Guid | The guid of the error to delete |
return | bool |
protected DeleteErrors ( IEnumerable |
||
guids | IEnumerable |
The guids of the error to delete |
return | bool |
protected GetAllErrors ( List |
||
errors | List |
|
applicationName | string | |
return | int |
protected GetError ( System.Guid guid ) : Error | ||
guid | System.Guid | The guid of the error to retrieve |
return | Error |
protected GetErrorCount ( System.DateTime since = null, string applicationName = null ) : int | ||
since | System.DateTime | |
applicationName | string | |
return | int |
protected HardDeleteError ( System.Guid guid ) : bool | ||
guid | System.Guid | The guid of the error to hard delete |
return | bool |
protected LogError ( Error error ) : void | ||
error | Error | The error to log |
return | void |
public MySQLErrorStore ( ErrorStoreSettings settings ) : System | ||
settings | ErrorStoreSettings | |
return | System |
public MySQLErrorStore ( string connectionString, int displayCount = DefaultDisplayCount, int rollupSeconds = DefaultRollupSeconds ) : System | ||
connectionString | string | The database connection string to use |
displayCount | int | /// How many errors to display in the log (for display ONLY, the log is not truncated to this /// value) /// |
rollupSeconds | int |
/// The rollup seconds, defaults to |
return | System |
protected ProtectError ( Guid guid ) : bool | ||
guid | Guid | The guid of the error to protect |
return | bool |
protected ProtectErrors ( IEnumerable |
||
guids | IEnumerable |
The guids of the error to protect |
return | bool |