Пример #1
0
 private void ValidaServer(CalculadoraPath server)
 {
     if (server == null)
     {
         throw new NaoExisteUrlRegistradaException("Não existe url registrada para operação.");
     }
 }
Пример #2
0
        public JsonResult <CalculadoraResponse> Inclui(string url, string actions)
        {
            var server = new CalculadoraPath()
            {
                Url = url, Operacoes = actions
            };

            todosServers.Add(server);
            var calculadoraResponse = new CalculadoraResponse()
            {
                Status = TipoResponse.Result, Message = "OK"
            };

            return(MakeResult(calculadoraResponse));
        }
Пример #3
0
 public CalculadoraPath Add(CalculadoraPath path)
 {
     Servidores.Add(path);
     return(path);
 }