Ejemplo n.º 1
0
        public ViaHeaderValue(string protocolVersion, string receivedBy, string protocolName, string comment)
        {
            HeaderUtilities.CheckValidToken(protocolVersion, "protocolVersion");
            CheckReceivedBy(receivedBy);

            if (!string.IsNullOrEmpty(protocolName))
            {
                HeaderUtilities.CheckValidToken(protocolName, "protocolName");
                _protocolName = protocolName;
            }

            if (!string.IsNullOrEmpty(comment))
            {
                HeaderUtilities.CheckValidComment(comment, "comment");
                _comment = comment;
            }

            _protocolVersion = protocolVersion;
            _receivedBy      = receivedBy;
        }
Ejemplo n.º 2
0
 public ProductInfoHeaderValue(string comment)
 {
     HeaderUtilities.CheckValidComment(comment, "comment");
     _comment = comment;
 }