public DefaultAccountManager(IAccountApiProvider accountApi, IEventsProvider eventsProvider, IRegistry localRegistry) { Helper.GuardNotNull(accountApi); Helper.GuardNotNull(eventsProvider); Helper.GuardNotNull(localRegistry); _provider = accountApi; _eventsProvider = eventsProvider; _localRegistry = localRegistry; _accounts = new SortedDictionary <int, Account>(); }
public DefaultAccountManager(IAccountApiProvider accountApi, IEventsProvider eventsProvider, ILocalRegistry localRegistry) { Helper.GuardNotNull(accountApi); Helper.GuardNotNull(eventsProvider); Helper.GuardNotNull(localRegistry); _provider = accountApi; _eventsProvider = eventsProvider; _localRegistry = localRegistry; _accounts = new SortedDictionary <int, IAccountInternal>(); //_syncContext = SynchronizationContext.Current; _deleting = new Queue <Account>(); }
internal IEnumerable<AccountConfig> GetConfiguredAccounts(IAccountApiProvider accountApiProvider) { return _accConfigurator != null ? _accConfigurator(accountApiProvider) : Enumerable.Empty<AccountConfig>(); }
internal IEnumerable <AccountConfig> GetConfiguredAccounts(IAccountApiProvider accountApiProvider) { return(_accConfigurator != null?_accConfigurator(accountApiProvider) : Enumerable.Empty <AccountConfig>()); }
public DefaultAccountManager(IAccountApiProvider accountApi, IEventsProvider eventsProvider, IRegistry localRegistry) { Helper.GuardNotNull(accountApi); Helper.GuardNotNull(eventsProvider); Helper.GuardNotNull(localRegistry); _provider = accountApi; _eventsProvider = eventsProvider; _localRegistry = localRegistry; _accounts = new SortedDictionary<int, Account>(); }
public DefaultAccountManager(IAccountApiProvider accountApi, IEventsProvider eventsProvider, ILocalRegistry localRegistry) { Helper.GuardNotNull(accountApi); Helper.GuardNotNull(eventsProvider); Helper.GuardNotNull(localRegistry); _provider = accountApi; _eventsProvider = eventsProvider; _localRegistry = localRegistry; _accounts = new SortedDictionary<int, IAccountInternal>(); //_syncContext = SynchronizationContext.Current; _deleting = new Queue<Account>(); }