Good afternoon,
I need to create a system with which to limit the number of simultaneous accesses to the apphost. The idea is to define a License Manager with which to indicate the number of hosts that will be able to access the apphost simultaneously.
Another alternative if you are using ServiceStack 8.1+ with Endpoint Routing is to use the ASP.NET built in rate limiter middleware, there is a documented example of a Concurrency limiter, however it sounds like you might need to do it on a per user basis so you might need to roll something more specific for that.
As an example of integration with ServiceStack, you can create it and apply the rate limiter in the UseServiceStack options.