We are experiencing differences between a service running on .net core and .net framework.
We’re currently using SS 5.1.0 and .net core version 2.1.300.
When we register a WebServices
G.IOC.Register(c => new Service0()).ReusedWithin(ReuseScope.Container);
When running on .net core on windows 10
The service Service0 is recreated on every call to the web-service regardless of the value of ReusedWithin setting
The public instance variables are set to null before the destructor is called. Private instance variables are unchanged. Note: Our code is not setting the public values to null.
Notes: In our example there are two other services that are being started after this. At one point this worked, and we don’t know what has changed to affect it.
Do you have any techniques to help us troubleshoot this?
Again, the .NET Framework running on windows 10 version works correctly.
As always thanks for your help!