Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Create OnRegistering & OnConventionalRegistering events and they should be triggered when registrations are begin #26

Closed
osoykan opened this issue Jul 14, 2017 · 1 comment
Assignees
Milestone

Comments

@osoykan
Copy link
Collaborator

osoykan commented Jul 14, 2017

If RegisterAssemblyByConvention(Assembly) is called then

  • OnConventionalRegistering is triggered immediately for that Assembly.
  • OnRegistering is triggered for each conventional marked services (ITransientDepency, ISingletonDependency, ILifetimeScopeDependency)

If any Register<TS,TI> or other Register methods are called then

  • OnRegistering is triggered for each of them

Thus we can intercept any registration that done by Autofac.Extras.IocManager and we do sort of things way what we want.

@osoykan osoykan added this to the 3.1.0 milestone Jul 14, 2017
@osoykan osoykan self-assigned this Jul 14, 2017
@osoykan
Copy link
Collaborator Author

osoykan commented Jul 14, 2017

Closed with c19f84c

@osoykan osoykan closed this as completed Jul 14, 2017
osoykan added a commit that referenced this issue Jul 14, 2017
OnRegistering & OnConventionalRegistering events added #26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant