public bool Prepare(ContentManagerOptions options, string input) { this.options = options; this.files = new Dictionary <string, string[]>(); this.logger = Service.Logger; return(this.ParseHashes(input)); }
public ContentManager(ContentManagerOptions options) { this.Options = options; this.manifestVersion = options.ManifestVersion; this.environment = options.Env; Service.ContentManager = this; }
public void Load(ContentManagerOptions options, ManifestLoadDelegate onSuccess, ManifestLoadDelegate onFailure) { this.options = options; this.onSuccess = onSuccess; this.onFailure = onFailure; string arg = string.IsNullOrEmpty(options.AccessToken) ? string.Empty : string.Format("?access_token={0}", options.AccessToken); this.manifestUrl = string.Format("{0}{1}{2}", options.ContentBaseUrl, options.ManifestPath, arg); this.AttemptManifestRequest(0u, null); }
public void Load(ContentManagerOptions options, ManifestLoadDelegate onSuccess, ManifestLoadDelegate onFailure) { IFileManifest fileManifest = new LocalFileManifest(); if (!fileManifest.Prepare(options, string.Empty)) { onFailure(fileManifest); return; } onSuccess(fileManifest); }
public bool Prepare(ContentManagerOptions options, string input) { this.options = options; return(true); }