You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
828 B
25 lines
828 B
namespace RadeonResetBugFixService.Tasks.ComplexTasks
|
|
{
|
|
using BasicTasks;
|
|
using Contracts;
|
|
using System;
|
|
|
|
class ShutdownTask : AbstractSequentialTask
|
|
{
|
|
private DevicesStatus ShutdownDevicesStatus { get; } = new DevicesStatus();
|
|
|
|
public override string TaskName => "Shutdown";
|
|
|
|
protected override ITask[] Subtasks => new ITask[]
|
|
{
|
|
new EnableBasicDisplayStartupTask(),
|
|
new SleepTask(TimeSpan.FromSeconds(40)),
|
|
new EnableAmdVideoTask(this.ShutdownDevicesStatus),
|
|
new DisableVirtualVideoTask(this.ShutdownDevicesStatus),
|
|
new SleepTask(TimeSpan.FromSeconds(20)),
|
|
new FixMonitorTask(),
|
|
new DisableVirtualVideoTask(this.ShutdownDevicesStatus),
|
|
new FixMonitorTask()
|
|
};
|
|
}
|
|
}
|
|
|