Exemplo n.º 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>();
 }
Exemplo n.º 2
0
 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>();
 }
Exemplo n.º 3
0
 internal IEnumerable<AccountConfig> GetConfiguredAccounts(IAccountApiProvider accountApiProvider)
 {
     return _accConfigurator != null ? _accConfigurator(accountApiProvider) : Enumerable.Empty<AccountConfig>();
 }
Exemplo n.º 4
0
 internal IEnumerable <AccountConfig> GetConfiguredAccounts(IAccountApiProvider accountApiProvider)
 {
     return(_accConfigurator != null?_accConfigurator(accountApiProvider) : Enumerable.Empty <AccountConfig>());
 }
Exemplo n.º 5
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>();
 }
Exemplo n.º 6
0
 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>();
 }