/// <summary>
        /// Extracts SREG attributes and returns the results.
        /// </summary>
        public Task <object> OnExtractResultsAsync(ClaimsIdentity identity, string claimedId, Infrastructure.Message message)
        {
            var result = new OpenIDSimpleRegistrationResult();

            foreach (var claim in ClaimsMap)
            {
                string value;
                if (message.TryGetValue(claim.Value + "." + SimpleRegistrationNamespace, out value))
                {
                    result.Values.Add(claim.Key, value);
                }
            }

            return(Task.FromResult((object)result));
        }
        /// <summary>
        /// Extracts SREG attributes and returns the results.
        /// </summary>
        public Task<object> OnExtractResultsAsync(ClaimsIdentity identity, string claimedId, Infrastructure.Message message)
        {
            var result = new OpenIDSimpleRegistrationResult();
            foreach (var claim in ClaimsMap)
            {
                string value;
                if (message.TryGetValue(claim.Value + "." + SimpleRegistrationNamespace, out value))
                {
                    result.Values.Add(claim.Key, value);
                }
            }

            return Task.FromResult((object)result);
        }