-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
actionDescriptor = ActionContext.ActionDescriptor, | ||
filterProviderContext = context | ||
}); | ||
} |
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.
This is totally out of place, what is this for?
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.
At this point the FilterProviderContext
contains a list of FIlterItem
which provides the FilterDescriptors and Filters
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.
but what is this for?
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.
I thought @avanderhoorn needed the list of registered filters separately.
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.
This event on it's own is out of place, all of these other events already provide this.
c6e2cfd
to
a938d7c
Compare
Updated. |
In terms of working out |
From the name of the event - if you want to consolidate that and track it as 'generic filter' feel free. |
Thanks |
a938d7c
to
bb1a4e6
Compare
Updated (with extension methods) |
_diagnosticSource.BeforeOnAuthorizationAsync( | ||
_authorizationContext.ActionDescriptor, | ||
_authorizationContext, | ||
current.FilterAsync); |
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.
Simplify this method to just take the _authorizationContext
and current.FilterAsync
after removing a parameter from all of the methods 👍 |
bb1a4e6
to
f2bc1c0
Compare
f2bc1c0
to
b6d7012
Compare
#3279
@rynowak @avanderhoorn