Method GetArtifact
GetArtifact(ArtifactCreationDelegate, bool)
Will download the artifact, or load it from the cache on your current machine, if it exists.
Declaration
public virtual void GetArtifact(Artifact<T>.ArtifactCreationDelegate onReceived, bool useCache)
Parameters
Type | Name | Description |
---|---|---|
Artifact<T>.ArtifactCreationDelegate | onReceived | Callback for when the artifact was successfully loaded and created. T will be default on error, and the error message will be in the 2nd parameter detailing the reason |
bool | useCache | When true will attempt to load the cached representation of this artifact from the local machine's GeneratedArtifactCache, and if not found will download it from the client. false will always reach out to the client and update the cache |