private async Task <string> GetBrokerAccountDataAsync(BrokerRequest brokerRequest) { var getAccountsBundle = _brokerHelper.CreateBrokerAccountBundle(brokerRequest); var serializedOperationBundle = SerializeBundle(getAccountsBundle); var bundleResult = await PerformContentResolverOperationAsync(ContentResolverOperation.getAccounts, serializedOperationBundle).ConfigureAwait(false); return(bundleResult?.GetString(BrokerConstants.BrokerAccounts)); }
private string GetBrokerAccounts(BrokerRequest brokerRequest) { Bundle getAccountsBundle = _brokerHelper.CreateBrokerAccountBundle(brokerRequest); getAccountsBundle.PutString(BrokerConstants.BrokerAccountManagerOperationKey, BrokerConstants.GetAccounts); //This operation will acquire all of the accounts in the account manager for the given client ID Bundle bundleResult = PerformAccountManagerOperationAsync(getAccountsBundle).Result; return(bundleResult?.GetString(BrokerConstants.BrokerAccounts)); }