DatabaseErrorPageMiddleware Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |