Class ParallelGameInstaller
Namespace: CmlLib.Core.Installers
Assembly: CmlLib.Core.dll
public class ParallelGameInstaller : GameInstallerBase, IGameInstaller
Inheritance
object ← GameInstallerBase ← ParallelGameInstaller
Implements
Inherited Members
GameInstallerBase.CheckFileSize, GameInstallerBase.CheckFileChecksum, GameInstallerBase.ExcludeFiles, GameInstallerBase.Install(IEnumerable<GameFile>, IProgress<InstallerProgressChangedEventArgs>?, IProgress<ByteProgress>?, CancellationToken), GameInstallerBase.Install(IEnumerable<GameFile>, CancellationToken), GameInstallerBase.NeedUpdate(GameFile), GameInstallerBase.Download(GameFile, IProgress<ByteProgress>?, CancellationToken), GameInstallerBase.IsExcludedPath(string), GameInstallerBase.FireFileProgress(int, int, string?, InstallerEventType), GameInstallerBase.FireByteProgress(ByteProgress), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
ParallelGameInstaller(int, int, int, HttpClient)
public ParallelGameInstaller(int maxChecker, int maxDownloader, int boundedCapacity, HttpClient httpClient)
Parameters
maxChecker int
maxDownloader int
boundedCapacity int
httpClient HttpClient
Properties
BoundedCapacity
public int BoundedCapacity { get; }
Property Value
MaxChecker
public int MaxChecker { get; }
Property Value
MaxDownloader
public int MaxDownloader { get; }
Property Value
Methods
CreateAsCoreCount(HttpClient)
public static ParallelGameInstaller CreateAsCoreCount(HttpClient httpClient)
Parameters
httpClient HttpClient
Returns
Install(IEnumerable<GameFile>, CancellationToken)
protected override ValueTask Install(IEnumerable<GameFile> gameFiles, CancellationToken cancellationToken)
Parameters
gameFiles IEnumerable<GameFile>
cancellationToken CancellationToken