1
This commit is contained in:
@@ -12,6 +12,7 @@ public class JobTriggerController : BaseController
|
||||
private readonly IStartupRegistry _startupRegistry;
|
||||
private readonly IShutdownRegistry _shutdownRegistry;
|
||||
private readonly IChineseNfoRegistry _chineseNfoRegistry;
|
||||
private readonly IDiskMonitorRegistry _diskMonitorRegistry;
|
||||
|
||||
/// <summary>
|
||||
/// ctor
|
||||
@@ -23,7 +24,8 @@ public class JobTriggerController : BaseController
|
||||
IRSyncTaskRegistry rSyncTaskRegistry,
|
||||
IStartupRegistry startupRegistry,
|
||||
IShutdownRegistry shutdownRegistry,
|
||||
IChineseNfoRegistry chineseNfoRegistry)
|
||||
IChineseNfoRegistry chineseNfoRegistry,
|
||||
IDiskMonitorRegistry diskMonitorRegistry)
|
||||
{
|
||||
_logTotalNotifyJobRegistry = logTotalNotifyJobRegistry;
|
||||
_diskActionMonitorRegistry = diskActionMonitorRegistry;
|
||||
@@ -32,6 +34,7 @@ public class JobTriggerController : BaseController
|
||||
_startupRegistry = startupRegistry;
|
||||
_shutdownRegistry = shutdownRegistry;
|
||||
_chineseNfoRegistry = chineseNfoRegistry;
|
||||
_diskMonitorRegistry = diskMonitorRegistry;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
@@ -98,4 +101,12 @@ public class JobTriggerController : BaseController
|
||||
|
||||
return "OK";
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public string DiskMonitor()
|
||||
{
|
||||
_diskMonitorRegistry.Job();
|
||||
|
||||
return "OK";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user