Is it possibile to "count" connected hosts?

Hi guys
Is there a way to count how many hosts are connected to the apphost? I would like to create a kind of volume licensing where exceding hosts are not allowed to use the apphost.

allowed 3 simultaneous hosts. PCA, PCB and PCC are allowed to execute app, PCD are not. If PCC turn off the app, PCD will be allowed.

I can do it by using a database table, but I’m wondering if there is a service stack built-in function to do it

Best regard

No there’s nothing built in, you’d implement it using a GlobalRequestFilter and would have to decide what constitutes a simultaneous host.