Interface IAppErrorStore
Represents a store for application errors.
Namespace: DataWeb.Error
Assembly: DataWeb.Core.dll
Syntax
public interface IAppErrorStore
Properties
Name
Gets the name of the error store.
Declaration
string Name { get; }
Property Value
Type |
---|
string |
Methods
GetCountAsync()
Retrieves the count of all errors asynchronously.
Declaration
Task<long> GetCountAsync()
Returns
Type | Description |
---|---|
Task<long> | The count of all errors. |
GetErrorAsync(AppErrorFilter)
Retrieves an error asynchronously, filtered by the specified AppErrorFilter.
Declaration
Task<AppError> GetErrorAsync(AppErrorFilter filter)
Parameters
Type | Name | Description |
---|---|---|
AppErrorFilter | filter | The filter to apply. |
Returns
Type | Description |
---|---|
Task<AppError> | An AppError object if found, otherwise null. |
GetErrorsAsync(AppErrorFilter)
Retrieves a collection of errors asynchronously, filtered by the specified AppErrorFilter.
Declaration
Task<IEnumerable<AppError>> GetErrorsAsync(AppErrorFilter filter)
Parameters
Type | Name | Description |
---|---|---|
AppErrorFilter | filter | The filter to apply. |
Returns
Type | Description |
---|---|
Task<IEnumerable<AppError>> | A collection of AppError objects. |
RemoveAllAsync()
Removes all errors asynchronously.
Declaration
Task RemoveAllAsync()
Returns
Type | Description |
---|---|
Task |
SetAsync(string, string, string, string)
Sets a new error log entry asynchronously.
Declaration
Task SetAsync(string errorMessage, string errorStackTrace, string errorUrl, string userIdMaster)
Parameters
Type | Name | Description |
---|---|---|
string | errorMessage | The error message to log. |
string | errorStackTrace | The stack trace of the error. |
string | errorUrl | The URL where the error occurred. |
string | userIdMaster | The Id of the user associated with the error. |
Returns
Type | Description |
---|---|
Task |