b79723d432
Cached Job Index, Live Job Message Update
42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using System.Web.Mvc;
|
|
using System.Web.Routing;
|
|
using SignalR;
|
|
|
|
namespace Disco.Web.Areas.API
|
|
{
|
|
public class APIAreaRegistration : AreaRegistration
|
|
{
|
|
public override string AreaName
|
|
{
|
|
get
|
|
{
|
|
return "API";
|
|
}
|
|
}
|
|
|
|
public override void RegisterArea(AreaRegistrationContext context)
|
|
{
|
|
context.Routes.MapConnection<Disco.Services.Logging.Targets.LogLiveContext>(
|
|
"API_Logging_Notifications", "API/Logging/Notifications/{*operation}");
|
|
|
|
context.Routes.MapConnection<Disco.Services.Tasks.ScheduledTasksLiveStatusService>(
|
|
"API_Logging_TaskStatusNotifications", "API/Logging/TaskStatusNotifications/{*operation}");
|
|
|
|
context.Routes.MapConnection<Disco.BI.Interop.SignalRHandlers.RepositoryMonitorNotifications>(
|
|
"API_Repository_Notifications", "API/Repository/Notifications/{*operation}");
|
|
|
|
context.MapRoute(
|
|
"API_Update",
|
|
"API/{controller}/Update/{id}/{key}",
|
|
new { action = "Update" }
|
|
);
|
|
|
|
context.MapRoute(
|
|
"API_default",
|
|
"API/{controller}/{action}/{id}",
|
|
new { id = UrlParameter.Optional }
|
|
);
|
|
}
|
|
}
|
|
}
|