Feature: Live Job Resource Updates

Using Repository Monitor and associated SignalR service, Job Logs and
Attachments are automatically updated on all 'viewing' computers.
This commit is contained in:
Gary Sharp
2013-04-30 12:49:36 +10:00
parent 7b0d99537b
commit 2da0b236af
5 changed files with 777 additions and 730 deletions
@@ -9,6 +9,7 @@ namespace Disco.Web.Areas.API.Models.Attachment
{
public class _AttachmentModel
{
public string ParentId { get; set; }
public int Id { get; set; }
public string Author { get; set; }
public DateTime Timestamp { get; set; }
@@ -42,6 +43,7 @@ namespace Disco.Web.Areas.API.Models.Attachment
{
return new _AttachmentModel
{
ParentId = ua.UserId,
Id = ua.Id,
Author = ua.TechUser.ToString(),
Timestamp = ua.Timestamp,
@@ -54,6 +56,7 @@ namespace Disco.Web.Areas.API.Models.Attachment
{
return new _AttachmentModel
{
ParentId = ja.JobId.ToString(),
Id = ja.Id,
Author = ja.TechUser.ToString(),
Timestamp = ja.Timestamp,
@@ -66,6 +69,7 @@ namespace Disco.Web.Areas.API.Models.Attachment
{
return new _AttachmentModel
{
ParentId = da.DeviceSerialNumber,
Id = da.Id,
Author = da.TechUser.ToString(),
Timestamp = da.Timestamp,