in edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Docker/DockerRuntimeModule.cs [106:132]
public override bool Equals(IModule<DockerConfig> other)
{
if (ReferenceEquals(null, other))
return false;
if (ReferenceEquals(this, other))
return true;
// Compare as IModule, then Compare as IRuntimeModule, if applicable
if (!base.Equals(other))
{
return false;
}
else
{
if (other is IRuntimeModule reportedOther)
{
return this.ExitCode == reportedOther.ExitCode &&
string.Equals(this.StatusDescription, reportedOther.StatusDescription) &&
this.LastStartTimeUtc == reportedOther.LastStartTimeUtc &&
this.LastExitTimeUtc == reportedOther.LastExitTimeUtc &&
this.RestartCount == reportedOther.RestartCount &&
this.LastRestartTimeUtc == reportedOther.LastRestartTimeUtc &&
this.RuntimeStatus == reportedOther.RuntimeStatus;
}
return true;
}
}