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/ShutdownTask.cs

29 lines
968 B

namespace RadeonResetBugFixService.Tasks.ComplexTasks
{
using BasicTasks;
using Contracts;
using System;
class ShutdownTask : AbstractSequentialTask
{
public ShutdownTask(ServiceContext context)
{
this.Context = context;
}
private ServiceContext Context { get; }
public override string TaskName => "Shutdown";
protected override ITask[] Subtasks => new ITask[]
{
new StopAudioServiceTask(),
new EnableVirtualVideoTask(this.Context.ShutdownDevicesStatus),
new DisableAmdVideoTask(this.Context.ShutdownDevicesStatus),
new LastResortDevicesRestoreTask(this.Context.StartupDevicesStatus),
new LastResortDevicesRestoreTask(this.Context.StartupDevicesStatus), // just in case
new StartAudioServiceTask(),
new DisableBasicDisplayStartupTask(this.Context.StartupDevicesStatus),
};
}
}