-
Notifications
You must be signed in to change notification settings - Fork 0
/
Internals.cs
65 lines (54 loc) · 1.88 KB
/
Internals.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace CK.DeviceModel;
internal class InternalConfigureDeviceCommand<TConfiguration> : BaseConfigureDeviceCommand<TConfiguration>
where TConfiguration : DeviceConfiguration, new()
{
public InternalConfigureDeviceCommand( Type hostType, DeviceConfiguration? externalConfiguration, DeviceConfiguration? clonedConfiguration, (string lockedName, string? controllerKey)? locked = null )
: base( (TConfiguration?)externalConfiguration, (TConfiguration?)clonedConfiguration, locked )
{
HostType = hostType;
}
public override Type HostType { get; }
}
internal class InternalStartDeviceCommand : BaseStartDeviceCommand
{
public InternalStartDeviceCommand( Type hostType, string name )
{
HostType = hostType;
DeviceName = name;
}
public override Type HostType { get; }
}
internal class InternalStopDeviceCommand : BaseStopDeviceCommand
{
public InternalStopDeviceCommand( Type hostType, string name, bool ignoreAlwaysRunning )
{
HostType = hostType;
DeviceName = name;
IgnoreAlwaysRunning = ignoreAlwaysRunning;
}
public override Type HostType { get; }
}
internal class InternalDestroyDeviceCommand : BaseDestroyDeviceCommand
{
public InternalDestroyDeviceCommand( Type hostType, string name )
{
HostType = hostType;
DeviceName = name;
}
public override Type HostType { get; }
}
internal class InternalSetControllerKeyDeviceCommand : BaseSetControllerKeyDeviceCommand
{
public InternalSetControllerKeyDeviceCommand( Type hostType, string name, string? current, string? newControllerKey )
{
HostType = hostType;
DeviceName = name;
ControllerKey = current;
NewControllerKey = newControllerKey;
}
public override Type HostType { get; }
}