An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/Patcher.Web/PatcherInfo.cs

30 lines
684 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Patcher.Web {
abstract public class PatcherInfo {
internal readonly IPatcherConfiguration configuration;
public readonly bool IsContainsNewPatches;
public bool AreNewPatchesInstalled {
get;
internal set;
}
public bool IsNeedsPatching {
get {
return this.IsContainsNewPatches && !this.AreNewPatchesInstalled;
}
}
protected PatcherInfo(IPatcherConfiguration configuration) {
this.configuration = configuration;
this.IsContainsNewPatches = (new Checker(new CheckParams(configuration))).IsNeedsPatching();
}
}
}