You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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<PageHub> _hubContext;
|
|
|
|
|
|
|
|
public HomeController(IHubContext<PageHub> hubContext)
|
|
|
|
{
|
|
|
|
this._hubContext = hubContext;
|
|
|
|
}
|
|
|
|
|
|
|
|
[ResponseCache(NoStore = true)]
|
|
|
|
public ActionResult Index()
|
|
|
|
{
|
|
|
|
return File("~/index.html", "text/html");
|
|
|
|
}
|
|
|
|
|
|
|
|
public IActionResult Test()
|
|
|
|
{
|
|
|
|
this._hubContext.Clients.All.ServerToClient("test", "hello", "");
|
|
|
|
return Json("ok");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|