public static ValueSet ToValueSet(this Payload payload) { var set = new ValueSet(); set.AddRange(payload); return(set); }
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 ); }