using System.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SignalR; using SettleAccount.Job.SignalR; using Volo.Abp.AspNetCore.Mvc; namespace Win.Sfs.SettleAccount.Controllers { public class HomeController : AbpController { private readonly IHubContext _hubContext; public HomeController(IHubContext hubContext) { this._hubContext = hubContext; } [ResponseCache(NoStore = true)] public ActionResult Index() { return File(System.IO.File.ReadAllBytes(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "index.html")), "text/html"); } public async Task Test(int seconds) { await Task.Delay(seconds * 1000).ConfigureAwait(false); return "ok"; } } }