Using Thread.Sleep, ThreadStart, and HttpListener?Solved
I started a RUST mod to eventually do Chroma RGB lighting. But first, I need to be able to serve HTTP pages with a HttpListener. The current Mono version doesn't let me add the prefix binding or start the HttpListener.

https://github.com/tgraupmann/RustChromaMod/blob/master/oxide/plugins/RustChromaMod.cs

I'd also like the mod to answer HTTP web requests and the page it serves up will control Chroma RGB lighting by showing a recent history of game events to a lighting client.

I tried a few things, like Http server and socket server. For whatever reason it's blocked or MCS can't compile that functionality.

What would it take to upgrade Mono?

Thanks!
If you are referring to the compiler, the current compiler for Oxide isn't receiving any updates. uMod will and has a new compiler that uses Roslyn instead of mono. For the functionality that is available for plugins in terms of .NET/mono that the game engine uses, that is dependent on what each game provides, not Oxide. What you are referring to though has nothing to do with the mono version.

Threading and various things such as that are sandboxed/blocked by the compiler though for security. You can disable the sandbox for private use by creating oxide.disable-sandbox under RustDedicated_Data/Managed.
Ahhh okay. Yeah I just figured when I made changes to "C:\steamcmd\steamapps\rust_server\oxide\plugins\*.cs" plugins when I saw it compiling I thought Mono was doing it. It didn't occur to me that sandboxing was outside of Mono...

I'll try disabling the sandbox and see if I can do more with .Net.
Oxide compilers .cs plugins each time they change generally. You can disable the sandbox as mentioned if you want to utilize that functionality, but keep in mind that you're on your own if something breaks from that usage. ;)
Turning off the sandbox security did the trick. Thanks for the help!
Locked automatically