예제 #1
0
 protected void Application_End(object sender, EventArgs e)
 {
     if (_host != null)
     {
         _host.Dispose();
         _host = null;
     }
 }
예제 #2
0
 protected void Application_End(object sender, EventArgs e)
 {
     if(_host!= null)
     {
         _host.Dispose();
         _host = null;
     }
 }
예제 #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();
        }
예제 #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();
        }