Update: SignalR 2.0.3 Migration; Noticeboards
Migrate all SignalR 1.x Persistent Connections to SignalR 2.x Hubs. Abstracts ScheduledTaskStatus with core interface and adds a Mock for optional status reporting. Noticeboards rewritten (with new theme) to be more resilient and accurate.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
using Microsoft.AspNet.SignalR;
|
||||
using Disco.BI.Interop.SignalRHandlers;
|
||||
|
||||
namespace Disco.Web.Areas.API
|
||||
{
|
||||
@@ -17,15 +16,6 @@ namespace Disco.Web.Areas.API
|
||||
|
||||
public override void RegisterArea(AreaRegistrationContext context)
|
||||
{
|
||||
context.Routes.MapConnection<LogNotifications>(
|
||||
"API_Logging_Notifications", "API/Logging/Notifications", new ConnectionConfiguration(), SignalRAuthenticationWorkaround.AddMiddleware);
|
||||
|
||||
context.Routes.MapConnection<ScheduledTasksStatusNotifications>(
|
||||
"API_Logging_TaskStatusNotifications", "API/Logging/TaskStatusNotifications", new ConnectionConfiguration(), SignalRAuthenticationWorkaround.AddMiddleware);
|
||||
|
||||
context.Routes.MapConnection<RepositoryMonitorNotifications>(
|
||||
"API_Repository_Notifications", "API/Repository/Notifications", new ConnectionConfiguration(), SignalRAuthenticationWorkaround.AddMiddleware);
|
||||
|
||||
context.MapRoute(
|
||||
"API_Update",
|
||||
"API/{controller}/Update/{id}/{key}",
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using Disco.BI;
|
||||
using Disco.BI.Extensions;
|
||||
using Disco.Services;
|
||||
using System;
|
||||
|
||||
namespace Disco.Web.Areas.API.Models.Attachment
|
||||
{
|
||||
@@ -27,7 +23,7 @@ namespace Disco.Web.Areas.API.Models.Attachment
|
||||
ParentId = ua.UserId,
|
||||
Id = ua.Id,
|
||||
AuthorId = ua.TechUserId,
|
||||
Author = ua.TechUser.ToString(),
|
||||
Author = ua.TechUser.ToStringFriendly(),
|
||||
Timestamp = ua.Timestamp,
|
||||
Comments = ua.Comments,
|
||||
Filename = ua.Filename,
|
||||
@@ -41,7 +37,7 @@ namespace Disco.Web.Areas.API.Models.Attachment
|
||||
ParentId = ja.JobId.ToString(),
|
||||
Id = ja.Id,
|
||||
AuthorId = ja.TechUserId,
|
||||
Author = ja.TechUser.ToString(),
|
||||
Author = ja.TechUser.ToStringFriendly(),
|
||||
Timestamp = ja.Timestamp,
|
||||
Comments = ja.Comments,
|
||||
Filename = ja.Filename,
|
||||
@@ -55,7 +51,7 @@ namespace Disco.Web.Areas.API.Models.Attachment
|
||||
ParentId = da.DeviceSerialNumber,
|
||||
Id = da.Id,
|
||||
AuthorId = da.TechUserId,
|
||||
Author = da.TechUser.ToString(),
|
||||
Author = da.TechUser.ToStringFriendly(),
|
||||
Timestamp = da.Timestamp,
|
||||
Comments = da.Comments,
|
||||
Filename = da.Filename,
|
||||
|
||||
Reference in New Issue
Block a user