/// <summary> /// Initializes the hub. /// </summary> /// <param name="initializer">The initializer.</param> public void Initialize(IServiceHubInitializer initializer) { Logger = initializer.InitLogger(); TradeLineRules = initializer.InitializeTradeLineRules(); IList <IDbRepository> dbRepositories = initializer.InitializeDbRepositories(); TradeRepository = dbRepositories.OfType <ITradeRepository>().FirstOrDefault(); }
/// <summary> /// Initializes a new instance of the <see cref="AppController"/> class. /// </summary> /// <param name="initializer">The initializer.</param> public AppController(IServiceHubInitializer initializer) { _initializer = initializer; PlatformServiceHub.Instance.Initialize(_initializer); }