Esempio n. 1
0
 public bool Prepare(ContentManagerOptions options, string input)
 {
     this.options = options;
     this.files   = new Dictionary <string, string[]>();
     this.logger  = Service.Logger;
     return(this.ParseHashes(input));
 }
Esempio n. 2
0
 public ContentManager(ContentManagerOptions options)
 {
     this.Options           = options;
     this.manifestVersion   = options.ManifestVersion;
     this.environment       = options.Env;
     Service.ContentManager = this;
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        public void Load(ContentManagerOptions options, ManifestLoadDelegate onSuccess, ManifestLoadDelegate onFailure)
        {
            IFileManifest fileManifest = new LocalFileManifest();

            if (!fileManifest.Prepare(options, string.Empty))
            {
                onFailure(fileManifest);
                return;
            }
            onSuccess(fileManifest);
        }
Esempio n. 5
0
 public bool Prepare(ContentManagerOptions options, string input)
 {
     this.options = options;
     return(true);
 }