Exemple #1
0
        /// <summary>
        /// Initialize a instance of VerificationCode class.
        /// </summary>
        /// <param name="response"></param>
        public ImageVerificationCode(HttpWebResponse response)
        {
            IDictionary <string, string> headers = new Dictionary <string, string>(response.Headers.Count);

            foreach (string name in response.Headers)
            {
                headers[name] = response.Headers[name];
            }

            this.Initialize(response.GetRawContent(1024), null, headers);
        }