Zum Hauptinhalt springen

PublicGitHubCatalogOptions

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.ModelCatalogs

Defines the GitHub Options for public version of GitHub construction kit catalog

public class PublicGitHubCatalogOptions : GitHubCatalogOptions, IGitHubOptions

Inheritance Object → CatalogOptions → GitHubCatalogOptions → PublicGitHubCatalogOptions
Implements IGitHubOptions

Properties​

GitHubApiToken​

API Token for GitHub

public string GitHubApiToken { get; set; }

Property Value​

String

GitHubRepositoryName​

Name of the GitHub repository

public string GitHubRepositoryName { get; set; }

Property Value​

String

GitHubRepositoryOwner​

Owner of the GitHub repository

public string GitHubRepositoryOwner { get; set; }

Property Value​

String

GitHubRepositoryBranch​

GitHub repository branch

public string GitHubRepositoryBranch { get; set; }

Property Value​

String

GitHubPagesUri​

The uri to the GitHub pages site where the construction kit models are stored. If null or empty, the repository will use GitHub API for reading models.

public string GitHubPagesUri { get; set; }

Property Value​

String

ProductName​

Represents the product name to be used in the User-Agent header when making requests to GitHub API.

public string ProductName { get; set; }

Property Value​

String

IsEnabled​

When true, this GitHub catalog is enabled for reading and writing models.

public bool IsEnabled { get; set; }

Property Value​

Boolean

RefreshNotFoundRetryCount​

How often a catalog refresh retries reading an index file that is listed in the root catalog but answers 404. GitHub Pages briefly serves 404 while a deployment is being replaced, so a listed-but-missing index is usually transient. The count is a budget shared across one refresh, so a full site swap cannot stall a refresh for minutes.

public int RefreshNotFoundRetryCount { get; set; }

Property Value​

Int32

RefreshNotFoundRetryDelaySeconds​

Delay in seconds between the retries of GitHubCatalogOptions.RefreshNotFoundRetryCount.

public int RefreshNotFoundRetryDelaySeconds { get; set; }

Property Value​

Int32

ApiReads​

Whether a process that holds an API token may use the GitHub Contents API for READS (the source-of-truth read of dependency resolution, ValidateVersion, the cascade check and the API fallback of a model read). CatalogApiReadMode.Auto (default): on a CI build only. A token that merely happens to be configured on a developer machine does not switch local builds to API reads; they use the Pages mirror and the cached catalogs and need no token. A publish needs the token and always reads authoritatively, whatever this says.

public CatalogApiReadMode ApiReads { get; set; }

Property Value​

CatalogApiReadMode

ApiReadsEnabled​

The effective value of GitHubCatalogOptions.ApiReads: true when reads may use the API (a token is still required).

public bool ApiReadsEnabled { get; }

Property Value​

Boolean

CacheFileName​

Get or sets the cache file name for GitHub catalog

public string CacheFileName { get; set; }

Property Value​

String

CacheDirectory​

Gets or sets the cache directory for model catalogs

public string CacheDirectory { get; set; }

Property Value​

String

Constructors​

PublicGitHubCatalogOptions()​

Initializes a new instance of the PublicGitHubCatalogOptions class.

public PublicGitHubCatalogOptions()