Headless.HttpOutcome.HttpOutcome C# (CSharp) Method

HttpOutcome() protected method

Initializes a new instance of the HttpOutcome class.
/// The is null. ///
protected HttpOutcome ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo /// The information. ///
context System.Runtime.Serialization.StreamingContext /// The context. ///
return System
        protected HttpOutcome(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
            {
                throw new ArgumentNullException("info");
            }

            _location = new Uri(info.GetString("Location"));
            _method = new HttpMethod(info.GetString("Method"));
            _statusCode = (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), info.GetString("StatusCode"));
            _responseMessage = info.GetString("ResonseMessage");
            _responseTime = new TimeSpan(info.GetInt64("ResonseTime"));
        }

Same methods

HttpOutcome::HttpOutcome ( Uri location, HttpMethod method, HttpStatusCode statusCode, string responseMessage, System.TimeSpan responseTime ) : System