C# Class Elmah.ErrorLogDataSourceAdapter

Methods of this type are designed to serve an System.Web.UI.WebControls.ObjectDataSource control and are adapted according to expected call signatures and behavior.
Mostra file Open project: clearwavebuild/elmah

Public Methods

Method Description
ErrorLogDataSourceAdapter ( ) : System.Collections.Generic

Initializes a new instance of the ErrorLogDataSourceAdapter class with the default error log implementation.

GetErrorCount ( ) : int

Use as the value for ObjectDataSource.SelectCountMethod.

GetErrors ( int startRowIndex, int maximumRows ) : Elmah.ErrorLogEntry[]

Use as the value for ObjectDataSource.SelectMethod.

The parameters of this method are named after the default values for ObjectDataSource.StartRowIndexParameterName and ObjectDataSource.MaximumRowsParameterName so that the minimum markup is needed for the object data source control.

Private Methods

Method Description
GetErrorsPage ( int index, int size ) : Elmah.ErrorLogEntry[]

Method Details

ErrorLogDataSourceAdapter() public method

Initializes a new instance of the ErrorLogDataSourceAdapter class with the default error log implementation.
public ErrorLogDataSourceAdapter ( ) : System.Collections.Generic
return System.Collections.Generic

GetErrorCount() public method

Use as the value for ObjectDataSource.SelectCountMethod.
public GetErrorCount ( ) : int
return int

GetErrors() public method

Use as the value for ObjectDataSource.SelectMethod.
The parameters of this method are named after the default values for ObjectDataSource.StartRowIndexParameterName and ObjectDataSource.MaximumRowsParameterName so that the minimum markup is needed for the object data source control.
public GetErrors ( int startRowIndex, int maximumRows ) : Elmah.ErrorLogEntry[]
startRowIndex int
maximumRows int
return Elmah.ErrorLogEntry[]