Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DashboardService"/> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <param name="dashboardLogHistoryRepository">The dashboard log history repository.</param>
 /// <param name="iIPStackService">The i ip stack service.</param>
 /// <param name="exchangeRatesService">The exchange rates service.</param>
 /// <param name="yahooFinanceService">The yahoo finance service.</param>
 public DashboardService(IConfiguration configuration, IDashboardLogHistoryRepository dashboardLogHistoryRepository,
                         IIPStackService iIPStackService, IExchangeRatesService exchangeRatesService, IYahooFinanceService yahooFinanceService, UserManager <ApplicationUser> userManager)
 {
     this.configuration = configuration;
     this.dashboardLogHistoryRepository = dashboardLogHistoryRepository;
     this.iIPStackService      = iIPStackService;
     this.exchangeRatesService = exchangeRatesService;
     this.yahooFinanceService  = yahooFinanceService;
     this.userManager          = userManager;
 }
 public IPStackController(IIPStackService iPStackService)
 {
     _iPStackService = iPStackService;
 }