Exemplo n.º 1
0
        public string FetchToken(string sessionId)
        {
            var t = new DataProviderFetchToken(_ServiceProvider);

            var rez = t.GenerateToken(new ServiceProviderDataInfoSessionId(sessionId));

            return(rez.Token.Value);
        }
        private ServiceProviderDataInfoToken CreateToken()
        {
            string sesionId = SessionId.Value;

            Url    signInUrl = _ServiceSignInUrlFactory.Create(_ServiceProvider.EndPointType);
            string finalUrl  = signInUrl.Value + "&RuName=" + RuName.Value + "&SessID=" + HttpUtility.UrlEncode(sesionId);

            var proc = System.Diagnostics.Process.Start(finalUrl);

            _WaitWebResponseProvider.WaitForResponse();

            var t = new DataProviderFetchToken(_ServiceProvider);

            return(t.GenerateToken(SessionId).Token);
        }