public WarningHeaderValue(int code, string agent, string text)
        {
            CheckCode(code);
            CheckAgent(agent);
            HeaderUtilities.CheckValidQuotedString(text, "text");

            this.code  = code;
            this.agent = agent;
            this.text  = text;
        }
Beispiel #2
0
        public WarningHeaderValue(int code, string agent, string text)
        {
            CheckCode(code);
            CheckAgent(agent);
            HeaderUtilities.CheckValidQuotedString(text, nameof(text));

            _code  = code;
            _agent = agent;
            _text  = text;
        }
Beispiel #3
0
        public WarningHeaderValue(int code, string agent, string text, DateTimeOffset date)
        {
            CheckCode(code);
            CheckAgent(agent);
            HeaderUtilities.CheckValidQuotedString(text, "text");

            _code  = code;
            _agent = agent;
            _text  = text;
            _date  = date;
        }