What is the replacement for Perwebrequest life style Castle.Windsor in .net core?

1k Views Asked by At

net core castle windsor does not have Perwebrequest life style What is the replacement for this?

2

There are 2 best solutions below

1
John On BEST ANSWER

According to the research I did in .net core scope life style replaced with PerWebRequest because in .net core system.web removed

0
Jan Muncinsky On

For ASP.NET-CORE you would use:

LifestyleCustom<MsScopedLifestyleManager>() 

from the package - https://github.com/volosoft/castle-windsor-ms-adapter