C# Class withSIX.Mini.Core.Games.Collection

Inheritance: InstallableContent, ICollectionContent, IUninstallableContent
Show file Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Private Properties

Property Type Description
ContentIsInstalled bool
ContentIsUptodate bool
LogContentIsUptodate void
OriginalContentIsUptodate bool
ProcessDependenciesFirstThenOurContents void
ProcessOurContentsFirstThenDependencies void

Public Methods

Method Description
Install ( IInstallerSession installerSession, CancellationToken cancelToken, string constraint = null ) : Task
Replace ( ContentSpec existing, Content n ) : void
ReplaceContent ( IEnumerable contents ) : void
Uninstall ( IUninstallSession contentInstaller, CancellationToken cancelToken, string constraint = null ) : Task
UpdateState ( bool force = true ) : void

Protected Methods

Method Description
Collection ( System.Guid gameId, string name ) : System
CreateRelatedSpec ( string constraint ) : IContentSpec
GetCollections ( string constraint = null ) : IEnumerable>
HandleRelatedContentChildren ( ICollection x ) : void
HasUpdate ( string desiredVersion = null ) : bool

Private Methods

Method Description
ContentIsInstalled ( ) : bool
ContentIsUptodate ( ) : bool
LogContentIsUptodate ( bool result ) : void
OriginalContentIsUptodate ( ) : bool
ProcessDependenciesFirstThenOurContents ( ICollection list ) : void
ProcessOurContentsFirstThenDependencies ( ICollection list ) : void

Method Details

Collection() protected method

protected Collection ( System.Guid gameId, string name ) : System
gameId System.Guid
name string
return System

CreateRelatedSpec() protected method

protected CreateRelatedSpec ( string constraint ) : IContentSpec
constraint string
return IContentSpec

GetCollections() protected method

protected GetCollections ( string constraint = null ) : IEnumerable>
constraint string
return IEnumerable>

HandleRelatedContentChildren() protected method

protected HandleRelatedContentChildren ( ICollection x ) : void
x ICollection
return void

HasUpdate() protected method

protected HasUpdate ( string desiredVersion = null ) : bool
desiredVersion string
return bool

Install() public method

public Install ( IInstallerSession installerSession, CancellationToken cancelToken, string constraint = null ) : Task
installerSession IInstallerSession
cancelToken System.Threading.CancellationToken
constraint string
return Task

Replace() public method

public Replace ( ContentSpec existing, Content n ) : void
existing ContentSpec
n Content
return void

ReplaceContent() public method

public ReplaceContent ( IEnumerable contents ) : void
contents IEnumerable
return void

Uninstall() public method

public Uninstall ( IUninstallSession contentInstaller, CancellationToken cancelToken, string constraint = null ) : Task
contentInstaller IUninstallSession
cancelToken System.Threading.CancellationToken
constraint string
return Task

UpdateState() public method

public UpdateState ( bool force = true ) : void
force bool
return void