/// <summary> /// Constructor /// </summary> /// <param name="Path">Path to the asset</param> /// <param name="AssetManager">The asset manager.</param> public Asset(string Path, AssetManager AssetManager) { Contract.Requires<ArgumentNullException>(AssetManager != null, "AssetManager"); this.Path = Path; this.Included = new List<IAsset>(); this.Manager = AssetManager; this.Type = Manager.DetermineType(Path); var File = new FileInfo(Path); this.LastModified = File.Modified; this.Content = File.Read(); this.Minified = File.FullName.ToUpperInvariant().Contains(".MIN."); }
/// <summary> /// Initializes a new instance of the <see cref="AssetBundlerTask" /> class. /// </summary> /// <param name="Manager">The manager.</param> public AssetBundlerTask(AssetManager Manager) { this.Manager = Manager; }