C# Class withSIX.Mini.Infra.Data.Services.NetworkContentSyncer

Inheritance: IInfrastructureService, INetworkContentSyncer
Mostra file Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Public Methods

Method Description
GetCollections ( System.Guid gameId, IReadOnlyCollection collectionIds ) : Task>
NetworkContentSyncer ( IDbContextLocator locator, IW6Api api ) : System
SyncCollections ( IReadOnlyCollection collections, bool countCheck = true ) : Task
SyncContent ( IReadOnlyCollection games, ContentQuery filterFunc = null ) : Task

Private Methods

Method Description
GetContent ( Game game, ApiHashes latestHashes ) : ModClientApiJsonV3WithGameId>>.Task
GetContentList ( System.Guid gameId, ApiHashes hashes ) : ModClientApiJsonV3WithGameId>>.Task
GetDesiredModList ( Game game, ModClientApiJsonV3WithGameId>.IDictionary onlineContent, ContentQuery filterFunc, ModNetworkContent>.Dictionary currentContent ) : ModClientApiJsonV3WithGameId>.Dictionary
GetHashStats ( Game game, CancellationToken ct ) : Task
GetHashesV3 ( System.Guid gameId, CancellationToken ct ) : Task
GetRelatedContent ( Game game, IEnumerable desired, ModClientApiJsonV3WithGameId>.IDictionary dependencyChain, ModClientApiJsonV3WithGameId>.IDictionary onlineContent ) : void
GetRelatedContent ( Game game, ModClientApiJsonV3WithGameId c, ModClientApiJsonV3WithGameId>.IDictionary dependencyChain, ModClientApiJsonV3WithGameId>.IDictionary onlineContent ) : void
GetTheDesiredMods ( Game game, ContentQuery filterFunc, ModClientApiJsonV3WithGameId>.IDictionary onlineContent ) : ModClientApiJsonV3WithGameId>.Dictionary
HandleDependencies ( Game game, ModNetworkContent>.Dictionary content ) : void
HandleDependencies ( ModNetworkContent>.KeyValuePair nc, ModNetworkContent>.IDictionary networkContent ) : void
ProcessContents ( Game game, ModClientApiJsonV3WithGameId>.IDictionary onlineContent, ContentQuery filterFunc ) : void
ProcessGame ( Game game, ContentQuery filterFunc, CancellationToken ct ) : Task
UpdateContents ( Game game, ModClientApiJsonV3WithGameId>.IDictionary onlineContent, ModNetworkContent>.IDictionary content, ContentQuery filterFunc = null ) : void

Method Details

GetCollections() public method

public GetCollections ( System.Guid gameId, IReadOnlyCollection collectionIds ) : Task>
gameId System.Guid
collectionIds IReadOnlyCollection
return Task>

NetworkContentSyncer() public method

public NetworkContentSyncer ( IDbContextLocator locator, IW6Api api ) : System
locator IDbContextLocator
api IW6Api
return System

SyncCollections() public method

public SyncCollections ( IReadOnlyCollection collections, bool countCheck = true ) : Task
collections IReadOnlyCollection
countCheck bool
return Task

SyncContent() public method

public SyncContent ( IReadOnlyCollection games, ContentQuery filterFunc = null ) : Task
games IReadOnlyCollection
filterFunc withSIX.Mini.Applications.Services.Infra.ContentQuery
return Task