Certificate/wireless plugins; major refactoring

Migrate much of BI to Services.
Added Wireless Profile Provider plugin feature.
Added Certificate Authority Provider plugin feature.
Modified Certificate Provider plugin feature.
Database migration v17, for Device Profiles.
Enrolment Client Updated to support CA Certificates, Wireless Profiles
and Hardware Info.
New Client Enrolment Protocol to support new features.
Plugin Manifest Generator added to main solution.
Improved AD search performance.
This commit is contained in:
Gary Sharp
2016-09-28 20:16:25 +10:00
parent 489a5df7cc
commit 27c21175d7
210 changed files with 9822 additions and 6675 deletions
@@ -1,13 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Services.Tasks
{
public class ScheduledTaskMockStatus : IScheduledTaskStatus
{
public string TaskName { get; private set; }
public byte Progress { get; set; }
public string CurrentProcess { get; set; }
public string CurrentDescription { get; set; }
@@ -22,6 +20,11 @@ namespace Disco.Services.Tasks
public Exception TaskException { get; set; }
public ScheduledTaskMockStatus(string TaskName)
{
this.TaskName = TaskName;
}
private byte CalculateProgressValue(byte Progress)
{
return (byte)((Progress * this.ProgressMultiplier) + this.ProgressOffset);
@@ -90,11 +93,25 @@ namespace Disco.Services.Tasks
this.TaskException = TaskException;
}
public void LogWarning(string Message)
{
ScheduledTasksLog.LogScheduledTaskWarning(TaskName, null, Message);
}
public void LogInformation(string Message)
{
ScheduledTasksLog.LogScheduledTaskInformation(TaskName, null, Message);
}
[Obsolete("Use the constructor which requires a TaskName instead")]
public static ScheduledTaskMockStatus Create()
{
return new ScheduledTaskMockStatus();
return new ScheduledTaskMockStatus("Unknown Task");
}
public static ScheduledTaskMockStatus Create(string TaskName)
{
return new ScheduledTaskMockStatus(TaskName);
}
}
}