Register/pass external object

Jul 1, 2013 at 5:04 PM
If I use Cassini as embedded web server, can I pass an object from my host application to a web application?
var server = new CassiniDevServer();

//---------------------->8-----------------------------------
// Pass custom object to the web application - pseudocode

var myObject = new MyClass();
server.Session["myObject"] = myObject;

//---------------------->8-----------------------------------

server.StartServer(Environment.CurrentDirectory, 8080, "/", "saturn1");