示例#1
0
 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>();
 }
示例#3
0
 internal IEnumerable<AccountConfig> GetConfiguredAccounts(IAccountApiProvider accountApiProvider)
 {
     return _accConfigurator != null ? _accConfigurator(accountApiProvider) : Enumerable.Empty<AccountConfig>();
 }
示例#4
0
 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>();
 }