Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Conversation

@TechnoBerry
Copy link
Contributor

@TechnoBerry TechnoBerry commented Apr 30, 2018

Refactor JwtBearerHandler to simplify code

@dnfclas
Copy link

dnfclas commented Apr 30, 2018

CLA assistant check
All CLA requirements met.


foreach (var ex in exceptions)
{
// Order sensitive, some of these exceptions derive from others
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment still relevant? Does the switch select the most specific match in a type hierarchy?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind: https://docs.microsoft.com/en-us/dotnet/csharp/pattern-matching

The switch expressions are evaluated in textual order.

@Tratcher Tratcher merged commit a2cb92b into aspnet:dev May 1, 2018
@Tratcher
Copy link
Member

Tratcher commented May 1, 2018

Thanks

@Tratcher Tratcher added this to the 2.2.0-mq milestone May 1, 2018
@TechnoBerry
Copy link
Contributor Author

Not at all

HaoK pushed a commit that referenced this pull request Jul 11, 2018
* Use pattern matching to check exception type in JwtBearerHandler

* Use expression body to configure events in JwtBearerHandler
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants