Ejemplo n.º 1
0
        public IResponse Build(System.Text.RegularExpressions.Match match)
        {
            Status status    = match.ReadGroupAs <Status>(StatusGroup, value => (Status)Enum.Parse(typeof(Status), value, true));
            string hostName  = match.ReadGroupValue(HostNameGroup);
            string ipAddress = match.ReadGroupValue(IpAddressGroup);
            int    port      = match.ReadGroupAs <int>(PortGroup, Int32.Parse);

            return(new Command.Response.Udp(status, hostName, ipAddress, port));
        }