C# Class Vtex.Gallery.Context.Connectors.AppsContextConnector

Inheritance: ContextConnector
Mostra file Open project: vtex/gallery-context-net Class Usage Examples

Protected Properties

Property Type Description
CachedArchives FileList>.Dictionary
CachedFileLists IReadOnlyList>.Dictionary
CachedFiles AppFile>.Dictionary

Public Methods

Method Description
AppsContextConnector ( IAppsClient appsClient, ISandboxesClient sandboxesClient, IReadOnlyList apps, SandboxCollection sandboxes, string serviceName, string excludePrefixes ) : System.Collections.Generic
GetAppsAsync ( CancellationToken cancellationToken ) : App>>.Task
GetFileAsync ( AppIdentifier id, string path, CancellationToken cancellationToken ) : Task
GetMetadataAsync ( AppIdentifier id ) : Task
ListFilesAsync ( AppIdentifier id, CancellationToken cancellationToken ) : Task>
ListFilesAsync ( CancellationToken cancellationToken ) : Task>

Protected Methods

Method Description
GetApp ( AppIdentifier id ) : App
GetArchiveAsync ( AppIdentifier id, string appVersion, CancellationToken cancellationToken ) : Task
GetFileFromAppOrSandbox ( AppIdentifier id, string appVersion, string path, CancellationToken cancellationToken ) : Task
ListFilesAsync ( AppIdentifier id, string appVersion, CancellationToken cancellationToken ) : Task>

Private Methods

Method Description
GetFileFromArchiveAsync ( App app, string path, CancellationToken cancellationToken ) : Task
SandboxFor ( AppIdentifier id ) : string

Method Details

AppsContextConnector() public method

public AppsContextConnector ( IAppsClient appsClient, ISandboxesClient sandboxesClient, IReadOnlyList apps, SandboxCollection sandboxes, string serviceName, string excludePrefixes ) : System.Collections.Generic
appsClient IAppsClient
sandboxesClient ISandboxesClient
apps IReadOnlyList
sandboxes SandboxCollection
serviceName string
excludePrefixes string
return System.Collections.Generic

GetApp() protected method

protected GetApp ( AppIdentifier id ) : App
id AppIdentifier
return Vtex.Apps.Client.Models.Response.App

GetAppsAsync() public method

public GetAppsAsync ( CancellationToken cancellationToken ) : App>>.Task
cancellationToken System.Threading.CancellationToken
return App>>.Task

GetArchiveAsync() protected method

protected GetArchiveAsync ( AppIdentifier id, string appVersion, CancellationToken cancellationToken ) : Task
id AppIdentifier
appVersion string
cancellationToken System.Threading.CancellationToken
return Task

GetFileAsync() public method

public GetFileAsync ( AppIdentifier id, string path, CancellationToken cancellationToken ) : Task
id AppIdentifier
path string
cancellationToken System.Threading.CancellationToken
return Task

GetFileFromAppOrSandbox() protected method

protected GetFileFromAppOrSandbox ( AppIdentifier id, string appVersion, string path, CancellationToken cancellationToken ) : Task
id AppIdentifier
appVersion string
path string
cancellationToken System.Threading.CancellationToken
return Task

GetMetadataAsync() public method

public GetMetadataAsync ( AppIdentifier id ) : Task
id AppIdentifier
return Task

ListFilesAsync() public method

public ListFilesAsync ( AppIdentifier id, CancellationToken cancellationToken ) : Task>
id AppIdentifier
cancellationToken System.Threading.CancellationToken
return Task>

ListFilesAsync() protected method

protected ListFilesAsync ( AppIdentifier id, string appVersion, CancellationToken cancellationToken ) : Task>
id AppIdentifier
appVersion string
cancellationToken System.Threading.CancellationToken
return Task>

ListFilesAsync() public method

public ListFilesAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

Property Details

CachedArchives protected_oe property

protected Dictionary CachedArchives
return FileList>.Dictionary

CachedFileLists protected_oe property

protected Dictionary> CachedFileLists
return IReadOnlyList>.Dictionary

CachedFiles protected_oe property

protected Dictionary CachedFiles
return AppFile>.Dictionary