Пример #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app,
                              IHostingEnvironment env,
                              ICurrentMutualFund currentMutualFund, ILogger <Startup> logger)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseRewriter(new RewriteOptions()
                            .AddRedirectToHttpsPermanent());

            app.UseStaticFiles();

            app.UseAuthentication();

            app.UseMvc(ConfigureRoutes);

            app.Run(async(context) =>
            {
                var greeting = currentMutualFund.GetTopStockCategoryInMF();
                context.Response.ContentType = "text/plain";
                await context.Response.WriteAsync($"Not found");
            });
        }
 public CurrentMutualFundModel(ICurrentMutualFund currentMutualFund)
 {
     _currentMutualFund = currentMutualFund;
 }
 public CurrentMutualFundViewComponent(ICurrentMutualFund currentMutualFund)
 {
     _currentMutualFund = currentMutualFund;
 }
Пример #4
0
 public HomeController(IStocksymbolData stocksymbolData,
                       ICurrentMutualFund currentMutualFund)
 {
     _stocksymbolData   = stocksymbolData;
     _currentMutualFund = currentMutualFund;
 }