Esempio n. 1
0
 /// <summary>
 /// Check if we match a given set of <paramref name="otherParameters"/>
 /// </summary>
 /// <param name="otherParameters">The <see cref="DreamDaemonLaunchParameters"/> to compare against</param>
 /// <returns><see langword="true"/> if they match, <see langword="false"/> otherwise</returns>
 public bool Match(DreamDaemonLaunchParameters otherParameters) =>
 AllowWebClient == (otherParameters?.AllowWebClient ?? throw new ArgumentNullException(nameof(otherParameters))) &&
 SecurityLevel == otherParameters.SecurityLevel &&
 PrimaryPort == otherParameters.PrimaryPort &&
 SecondaryPort == otherParameters.SecondaryPort &&
 StartupTimeout == otherParameters.StartupTimeout &&
 HeartbeatSeconds == otherParameters.HeartbeatSeconds;
 /// <summary>
 /// Check if we match a given set of <paramref name="otherParameters"/>. <see cref="StartupTimeout"/> is excluded.
 /// </summary>
 /// <param name="otherParameters">The <see cref="DreamDaemonLaunchParameters"/> to compare against</param>
 /// <returns><see langword="true"/> if they match, <see langword="false"/> otherwise</returns>
 public bool CanApplyWithoutReboot(DreamDaemonLaunchParameters otherParameters) =>
 AllowWebClient == (otherParameters?.AllowWebClient ?? throw new ArgumentNullException(nameof(otherParameters))) &&
 SecurityLevel == otherParameters.SecurityLevel &&
 Port == otherParameters.Port &&
 TopicRequestTimeout == otherParameters.TopicRequestTimeout;                            // We intentionally don't check StartupTimeout or heartbeat seconds as it doesn't matter in terms of the watchdog
Esempio n. 3
0
 /// <summary>
 /// Check if we match a given set of <paramref name="otherParameters"/>
 /// </summary>
 /// <param name="otherParameters">The <see cref="DreamDaemonLaunchParameters"/> to compare against</param>
 /// <returns><see langword="true"/> if they match, <see langword="false"/> otherwise</returns>
 public bool Match(DreamDaemonLaunchParameters otherParameters) =>
 AllowWebClient == otherParameters.AllowWebClient &&
 SecurityLevel == otherParameters.SecurityLevel &&
 PrimaryPort == otherParameters.PrimaryPort &&
 SecondaryPort == otherParameters.SecondaryPort &&
 StartupTimeout == otherParameters.StartupTimeout;