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); }