Exemplo n.º 1
0
 protected void Application_End(object sender, EventArgs e)
 {
     if (_host != null)
     {
         _host.Dispose();
         _host = null;
     }
 }
Exemplo n.º 2
0
 protected void Application_End(object sender, EventArgs e)
 {
     if(_host!= null)
     {
         _host.Dispose();
         _host = null;
     }
 }
Exemplo n.º 3
0
        protected void Application_Start(object sender, EventArgs e)
        {
            _host = new AlchemyWampHost(IPAddress.Any, 3333)
                    .RegisterFunction("http://localhost:3333/Calculator#Add", (double x, double y) => x + y)
                    .RegisterFunction("http://localhost:3333/Calculator#Sub", (double x, double y) => x - y)
                    .RegisterFunction("http://localhost:3333/Calculator#Mul", (double x, double y) => x * y)
                    .RegisterFunction("http://localhost:3333/Calculator#Div", (double x, double y) => x / y);

            _host.Start();
        }
Exemplo n.º 4
0
        protected void Application_Start(object sender, EventArgs e)
        {
            _host = new AlchemyWampHost(IPAddress.Any, 3333)
                .RegisterFunction("http://localhost:3333/Calculator#Add", (double x, double y) => x + y)
                .RegisterFunction("http://localhost:3333/Calculator#Sub", (double x, double y) => x - y)
                .RegisterFunction("http://localhost:3333/Calculator#Mul", (double x, double y) => x * y)
                .RegisterFunction("http://localhost:3333/Calculator#Div", (double x, double y) => x / y);

            _host.Start();
        }