コード例 #1
0
        public static void RemoveServerDoServerDir(string urlServerDir, string url)
        {
            var call = new CallServer(urlServerDir);

            call.Action(Actions.Offline)
            .Params(new Tuple <string, string>("url", url))
            .ExecuteGet();
        }
コード例 #2
0
        public static void RegistraNoServerDir(string urlServerDir, string urlCalculadoraServer, string operacoes)
        {
            var call = new CallServer(urlServerDir);

            call.Action(Actions.Online)
            .Params(new Tuple <string, string>("url", urlCalculadoraServer),
                    new Tuple <string, string>("actions", operacoes))
            .ExecuteGet();
        }
コード例 #3
0
        public double Divisao(long x, long y)
        {
            var urlOper = GetServer("Divisao");

            ValidaUrl(urlOper);
            var callCalc = new CallServer(urlOper);
            var result   = callCalc.Action(Actions.Divisao)
                           .Params(new Tuple <string, string>("x", x.ToString()),
                                   new Tuple <string, string>("y", y.ToString()))
                           .ExecuteGet();

            return(GetResult(result));
        }