Skip to content
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

Convert internal field to public property to allow external access. #51

Merged
merged 1 commit into from
Mar 8, 2019
Merged

Convert internal field to public property to allow external access. #51

merged 1 commit into from
Mar 8, 2019

Conversation

StevenRasmussen
Copy link

First off - Thanks for this incredible library!! I just came across it recently. Here's the problem that I am facing and reason for this PR:

I am using the IInterceptorSelector interface to filter the interceptors for specific methods. I am also using the IAsyncInterceptor interface (through the AsyncInterceptorBase class).

When the IInterceptorSelector.SelectInterceptors() method is called, if I inspect the interceptors parameter, instead of seeing my specific implementation of an IAsyncInterceptor I see an AsyncDeterminationInterceptor. This isn't necessarily an issue but my filter criteria depends on me being able to see if one of the interceptors is my specific IAsyncInterceptor implementation. As it stands now, I don't see a way of determining what the underlying interceptor is that is being used by the AsyncDeterminationInterceptor instance.

This PR simply exposes the previously Private field as a Public property now so that I can inspect the underlying IAsyncInterceptor.

@codecov
Copy link

codecov bot commented Mar 7, 2019

Codecov Report

Merging #51 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #51   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           5      5           
  Lines         229    230    +1     
  Branches        7      7           
=====================================
+ Hits          229    230    +1
Impacted Files Coverage Δ
....AsyncInterceptor/AsyncDeterminationInterceptor.cs 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46316fe...2881b2a. Read the comment docs.

@JSkimming
Copy link
Owner

LGTM, @brunoblank, @ndrwrbgs any objections?

@brunoblank
Copy link
Collaborator

👍 Looks good to me

@JSkimming JSkimming merged commit c07e4e6 into JSkimming:master Mar 8, 2019
@JSkimming
Copy link
Owner

@StevenRasmussen Release 1.7.0 has been pushed to NuGet. Many thanks for your contribution.

@StevenRasmussen
Copy link
Author

Many thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants