Radeon Reset Bug fix service
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.
RadeonResetBugFix/RadeonResetBugFixService/Tasks/ComplexTasks/StartupTask.cs

26 lines
822 B

namespace RadeonResetBugFixService.Tasks.ComplexTasks
{
using BasicTasks;
using Contracts;
using System;
class StartupTask : AbstractSequentialTask
{
private DevicesStatus StartupDevicesStatus { get; } = new DevicesStatus();
public override string TaskName => "Startup";
protected override ITask[] Subtasks => new ITask[]
{
new EnableBasicDisplayStartupTask(),
new SleepTask(TimeSpan.FromSeconds(40)),
new EnableAmdVideoTask(this.StartupDevicesStatus),
new DisableVirtualVideoTask(this.StartupDevicesStatus),
new SleepTask(TimeSpan.FromSeconds(20)),
new FixMonitorTask(),
new DisableVirtualVideoTask(this.StartupDevicesStatus),
new FixMonitorTask()
};
}
}