Share via


DatabaseErrorPageMiddleware Class

Definition

Captures synchronous and asynchronous database related exceptions from the pipeline that may be resolved using Entity Framework migrations. When these exceptions occur an HTML response with details of possible actions to resolve the issue is generated.

public ref class DatabaseErrorPageMiddleware : IObserver<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, IObserver<System::Diagnostics::DiagnosticListener ^>
public class DatabaseErrorPageMiddleware : IObserver<System.Collections.Generic.KeyValuePair<string,object>>, IObserver<System.Diagnostics.DiagnosticListener>
type DatabaseErrorPageMiddleware = class
    interface IObserver<DiagnosticListener>
    interface IObserver<KeyValuePair<string, obj>>
Public Class DatabaseErrorPageMiddleware
Implements IObserver(Of DiagnosticListener), IObserver(Of KeyValuePair(Of String, Object))
Inheritance
DatabaseErrorPageMiddleware
Implements

Constructors

DatabaseErrorPageMiddleware(RequestDelegate, ILoggerFactory, IOptions<DatabaseErrorPageOptions>)
Obsolete.

Initializes a new instance of the DatabaseErrorPageMiddleware class

Methods

Invoke(HttpContext)

Process an individual request.

Explicit Interface Implementations

IObserver<DiagnosticListener>.OnCompleted()
IObserver<DiagnosticListener>.OnError(Exception)
IObserver<DiagnosticListener>.OnNext(DiagnosticListener)
IObserver<KeyValuePair<String,Object>>.OnCompleted()
IObserver<KeyValuePair<String,Object>>.OnError(Exception)
IObserver<KeyValuePair<String,Object>>.OnNext(KeyValuePair<String,Object>)

Applies to