Ejemplo n.º 1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            BdtWebServer server = new BdtWebServer(Server);

            Application[this.GetType().FullName] = server;
            server.Start();
        }
Ejemplo n.º 2
0
        protected void Application_End(object sender, EventArgs e)
        {
            BdtWebServer server = (BdtWebServer)Application[this.GetType().FullName];

            if (server != null)
            {
                server.Stop();
            }
        }
Ejemplo n.º 3
0
        protected void Application_Error(object sender, EventArgs e)
        {
            Exception    ex     = Server.GetLastError();
            BdtWebServer server = (BdtWebServer)Application[this.GetType().FullName];

            if ((ex != null) && (server != null))
            {
                if (LoggedObject.GlobalLogger != null)
                {
                    server.Log(ex.Message, ESeverity.ERROR);
                    server.Log(ex.ToString(), ESeverity.DEBUG);
                }
                else
                {
                    Console.WriteLine(ex.Message);
                }
            }
        }
Ejemplo n.º 4
0
 protected void Application_Start(object sender, EventArgs e)
 {
     BdtWebServer server = new BdtWebServer(Server);
     Application[this.GetType().FullName] = server;
     server.Start();
 }