0

I want to implement a DI in any language that I want.Thus, I have to know how life cycles works in inversion-of-control.

for example to implement singleton, I can have a static collection to provide the same instance

Now I want to know when in an IoC library we use per web request, how we can distinguish if a request is new or not? Or does any request has a unique Id which we can recognize it!

unos baghaii
  • 2,539
  • 4
  • 25
  • 42
  • 2
    How to "distinguish if a request is new or not" is completely depending on the web technology you use. In ASP.NET Core this is completely different from ASP.NET 'Classic' and this will be different with Java frameworks, PHP, Ruby, you name it. Without asking about one specific framework, your question can not be answered. – Steven Jan 12 '18 at 17:43
  • so consider asp.net core @Steven – unos baghaii Jan 13 '18 at 08:09

0 Answers0