Esempio n. 1
0
        //  readonly HttpClient Client;

        //ToUsdContext Context;
        public CompanyController(
            IGlobalQuotesService srvQuotes,
            ICompanyOverviewService srvOverview,
            ICompanyBestMatchesService srvBestMatches
            )
        {
            //  Client = PrepareHttpClient(_httpClient); ;
            SrvQuote       = srvQuotes;      // = context;
            SrvOverview    = srvOverview;    // = context;
            SrvBestMatches = srvBestMatches; // = context;
            //  Srv.Client = Client;//Important those client would be used for service


            // Task.Run(srv.TryInit).Wait();
        }
Esempio n. 2
0
 public GlobalQuotesController(IGlobalQuotesService service)
 {
     _service = service;
 }