سؤال

I am using Autofac IoC. My question is: If I use extension for registration InstancePerLifetimeScope(), will it disposed after scope is ended? And if it true, how to know where it will end?

Thank you.

هل كانت مفيدة؟

المحلول

Yes. You could use logging to show it being disposed.

This article explains all about autofac lifetime

Check out the Autofac OnRelease event

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top