-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add Endpoint property to HttpContext and DefaultHttpContext #63575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -213,6 +213,13 @@ | |
} | ||
} | ||
|
||
/// <inheritdoc/> | ||
public override Endpoint? Endpoint | ||
{ | ||
get { return this.GetEndpoint(); } | ||
Check failure on line 219 in src/Http/Http/src/DefaultHttpContext.cs
|
||
set { this.SetEndpoint(value); } | ||
Check failure on line 220 in src/Http/Http/src/DefaultHttpContext.cs
|
||
} | ||
|
||
// This property exists because of backwards compatibility. | ||
// We send an anonymous object with an HttpContext property | ||
// via DiagnosticListener in various events throughout the pipeline. Instead | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The braces should be placed on separate lines according to the .editorconfig formatting guidelines. The getter and setter should be formatted as:\n
csharp\nget\n{\n return this.GetEndpoint();\n}\nset\n{\n this.SetEndpoint(value);\n}\n
Copilot generated this review using guidance from repository custom instructions.