2using System.Collections.Generic;
14 public TimeSpan ResetPeriod {
get; }
15 public string RebootMessage {
get; }
16 public string RestartCommand {
get; }
17 public IReadOnlyCollection<ScAction> Actions {
get; }
22 public ServiceFailureActions(TimeSpan resetPeriod,
string rebootMessage,
string restartCommand, IReadOnlyCollection<ScAction> actions)
24 ResetPeriod = resetPeriod;
25 RebootMessage = rebootMessage;
26 RestartCommand = restartCommand;
30 public override bool Equals(
object obj)
39 public override int GetHashCode()
41 int h1 = this.ResetPeriod.GetHashCode();
42 int h2 = this.RebootMessage.GetHashCode();
44 h1 = ((h1 << 5) + h1) ^ h2;
46 h2 = this.RestartCommand.GetHashCode();
47 h1 = ((h1 << 5) + h1) ^ h2;
49 foreach (
ScAction Action
in this.Actions)
51 h2 = Action.GetHashCode();
52 h1 = ((h1 << 5) + h1) ^ h2;
58 public bool Equals(ServiceFailureActions other)
64 return this.GetHashCode() == other.GetHashCode();
A managed class that holds data referring to a T:DasMulli.Win32.ServiceUtils.ServiceFailureActionsInf...
ServiceFailureActions(TimeSpan resetPeriod, string rebootMessage, string restartCommand, IReadOnlyCollection< ScAction > actions)
Initializes a new instance of the ServiceFailureActions class.