Ejemplo n.º 1
0
        private async Task RemoveBrokerAccountFromBrokersAsync(string clientId, IAccount account)
        {
            var removeAccountsBundle      = _brokerHelper.CreateRemoveBrokerAccountBundle(clientId, account);
            var serializedOperationBundle = SerializeBundle(removeAccountsBundle);

            await PerformContentResolverOperationAsync(ContentResolverOperation.removeAccounts, serializedOperationBundle).ConfigureAwait(false);
        }
        private async Task RemoveBrokerAccountInAccountManagerAsync(string clientId, IAccount account)
        {
            Bundle removeAccountBundle = _brokerHelper.CreateRemoveBrokerAccountBundle(clientId, account);

            removeAccountBundle.PutString(BrokerConstants.BrokerAccountManagerOperationKey, BrokerConstants.RemoveAccount);

            await PerformAccountManagerOperationAsync(removeAccountBundle).ConfigureAwait(false);
        }