-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement IAddPolicies interface #28
Comments
ENikS
referenced
this issue
in unitycontainer/abstractions
Sep 20, 2018
ENikS
referenced
this issue
in unitycontainer/container
Sep 20, 2018
ENikS
referenced
this issue
in unitycontainer/interception
Sep 20, 2018
ENikS
referenced
this issue
in unitycontainer/unity
Sep 20, 2018
ENikS
referenced
this issue
in unitycontainer/abstractions
Jun 15, 2020
Fixed unitycontainer/abstractions#82
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
InjectionMember
class implementsAddPolicies
methods called during registration. Default implementation does nothing, but derived types are allowed to override it to inject required policies into registration.Problem
Solution
To optimize performance interface
IAddPolicies
should be implemented.Injection Members requiring active registration must implement this interface.
Method
AddPolicies(Type typeToCreate, IPolicyList policies)
will be removed fromInjectionMember
as redundant.Interface
Impact
Custom Injection Members will require refactoring
The text was updated successfully, but these errors were encountered: