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

Added DiagnosticSource for filters #3363

Merged
merged 1 commit into from
Oct 23, 2015
Merged

Added DiagnosticSource for filters #3363

merged 1 commit into from
Oct 23, 2015

Conversation

ajaybhargavb
Copy link
Contributor

actionDescriptor = ActionContext.ActionDescriptor,
filterProviderContext = context
});
}
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

@ajaybhargavb
Copy link
Contributor Author

Updated.

@avanderhoorn
Copy link
Member

In terms of working out ExceptionFilter vs ActionFilter vs ResultFilter etc is the recommended approach here to derive this from the type of the filter?

@rynowak
Copy link
Member

rynowak commented Oct 21, 2015

In terms of working out ExceptionFilter vs ActionFilter vs ResultFilter etc is the recommended approach here to derive this from the type of the filter?

From the name of the event - if you want to consolidate that and track it as 'generic filter' feel free.

@avanderhoorn
Copy link
Member

Thanks

@ajaybhargavb
Copy link
Contributor Author

Updated (with extension methods)

_diagnosticSource.BeforeOnAuthorizationAsync(
_authorizationContext.ActionDescriptor,
_authorizationContext,
current.FilterAsync);
Copy link
Member

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

@rynowak
Copy link
Member

rynowak commented Oct 22, 2015

:shipit: after removing a parameter from all of the methods 👍

@ajaybhargavb ajaybhargavb merged commit b6d7012 into dev Oct 23, 2015
@ajaybhargavb ajaybhargavb deleted the telemetry-filters branch October 23, 2015 19:57
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.

4 participants