bool IUpdateKey.Equals(IUpdateKey other) { if (!(other is UpdateKey otherKey)) { return(false); } if (this == Null && other == Null) { return(true); } if (this == Null || other == Null) { return(false); } if (appEtag != otherKey.appEtag) { return(false); } if (pluginEtags.Count != otherKey.pluginEtags.Count) { return(false); } foreach (var p in pluginEtags) { if (!otherKey.pluginEtags.TryGetValue(p.Key, out var pluginEtag) || pluginEtag != p.Value) { return(false); } } return(true); }
PendingUpdate( string tempInstallationDir, IUpdateKey key, LJTraceSource trace, Process updaterProcess, string autoRestartFlagFileName ) { this.tempInstallationDir = tempInstallationDir; this.key = key; this.trace = trace; this.updaterProcess = updaterProcess; this.autoRestartFlagFileName = autoRestartFlagFileName; }