Ejemplo n.º 1
0
        public IConfiguration ConvertAccountOption(ConfigType type, Options.AccountOptions option)
        {
            ConfigGetGlobalOptions(option);
            ConfigPrintInformation(option, type, string.Empty);

            AccountConfiguration config = new AccountConfiguration(type, CommandApi.Info);

            GetDefaultOptions(config, option);
            config.GetBucket = true;

            return(config);
        }
Ejemplo n.º 2
0
        public async Task <QarnotSDK.UserInformation> RetrieveAsync(IConfiguration configuration, QarnotSDK.Connection connection, CancellationToken ct)
        {
            AccountConfiguration config = configuration as AccountConfiguration;

            return(await connection.RetrieveUserInformationAsync(config.GetBucket, cancellationToken : ct));
        }