I created service derived from
ServiceStack.ServiceInterface.Service
implementing some requests. What is the lifetime of this service instance - e.g. is there created a new instance per call or is the instance cached?
The Services are not singletons. An instance is created with every request.
Take a look at the following test that ensures this ServiceStack / tests / ServiceStack.ServiceHost.Tests / ServiceCreationTests.cs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With