Ejemplo 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));
 }
Ejemplo n.º 2
0
 public ContentManager(ContentManagerOptions options)
 {
     this.Options           = options;
     this.manifestVersion   = options.ManifestVersion;
     this.environment       = options.Env;
     Service.ContentManager = this;
 }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo n.º 5
0
 public bool Prepare(ContentManagerOptions options, string input)
 {
     this.options = options;
     return(true);
 }