Exemplo n.º 1
0
        public static ValueSet ToValueSet(this Payload payload)
        {
            var set = new ValueSet();

            set.AddRange(payload);
            return(set);
        }
Exemplo n.º 2
0
        private static void Authenticate( WebAuthenticateInteraction webAuthenticate )
        {
            Contract.Requires( webAuthenticate != null );
            
            var requestUri = webAuthenticate.RequestUri;
            var callbackUri = webAuthenticate.CallbackUri ?? WebAuthenticationBroker.GetCurrentApplicationCallbackUri();
            var options = webAuthenticate.Options;
            var continuationData = new ValueSet();

            continuationData.AddRange( webAuthenticate.ContinuationData );

            WebAuthenticationBroker.AuthenticateAndContinue( requestUri, callbackUri, continuationData, options );
        }