public MediaAttributes NormalizeAttributes(string filePath) { MediaAttributes attributes = new MediaAttributes(); attributes.Creation = File.GetCreationTime(filePath); attributes.Extension = GetExtension(filePath); return attributes; }
protected void Initialize(string filePath, IMediaProvider provider) { this.provider = provider; this.filePath = filePath; this.attributes = provider.NormalizeAttributes(filePath); }