protected async Task <SwiftClient> GetClient()
        {
            if (_client != null)
            {
                return(_client);
            }

            var token = await HubiCHelper.GetAccessTokenAsync(_account.Secret);

            var credentials = await HubiCHelper.GetCredentialsAsync(token.AccessToken);

            _client = new SwiftClient(credentials);

            return(_client);
        }
Ejemplo n.º 2
0
        protected async Task<SwiftClient> GetClient()
        {
            if (_client != null) return _client;

            var token = await HubiCHelper.GetAccessTokenAsync(_account.Secret);
            var credentials = await HubiCHelper.GetCredentialsAsync(token.AccessToken);
            _client = new SwiftClient(credentials);

            return _client;
        }