Example #1
0
        private static async Task <TokenResponse> GenerateTokenAsync(Client c)
        {
            Body2 body = new Body2();

            body.Expiration = s_tokenTimeout;
            body.F          = s_formatParam;
            body.Ip         = s_myIP;
            body.Referer    = s_myReferrer;
            body.Password   = s_portalPssword;
            body.Username   = s_portalUserName;

            Task <TokenResponse> tokenResponse = c.GenerateTokenAsync(s_portalWebAdaptorName, body);

            return(await tokenResponse);
        }
Example #2
0
        private static async Task <TokenResponse> GenerateTokenAsync(Client c)
        {
            Task <TokenResponse> tokenResponse = c.GenerateTokenAsync(s_portalUserName, s_portalPssword, s_myIP, s_myReferrer, s_tokenTimeout, s_formatParam, s_portalWebAdaptorName);

            return(await tokenResponse);
        }