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. |
Explicit Interface Implementations
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for