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