Grab the code from the blueprint section for API hosting with Perigee
Admin controller example
In this example we create a controller that allows us to turn threads on and off.
Simply add a new empty "API Controller" to the Controllers folder.
Call it AdminController.cs
Paste the code below in to replace the content
In this example we've created a simple endpoint we can call to turn anything on or off by simply checking the thread registry for the requested thread, then turning it on or off.
The port may be different - but you can see how easy it would be to turn something on or off!