Exemplo n.º 1
0
        public void Post([FromBody] DataOpti value)
        {
            Enqueue enqueue = new Enqueue(COLAENTRANTE, SERVER);
            var     message = GetMessage(value);

            enqueue.add(message);
        }
Exemplo n.º 2
0
        private static string GetMessage(DataOpti value)
        {
            var fechaOperativa = value.FechaOperativa.ToString("s");
            var fechaEjecucion = value.FechaEjecucion.ToString("s");
            var mensaje        = String.Format("{0},{1},{2},{3},{4},{5}",
                                               value.FileId, value.JobMRID, value.CodCaso, value.Proceso, fechaOperativa, fechaEjecucion);

            return(mensaje);
        }