public MediaAttributes NormalizeAttributes(string filePath)
        {
            MediaAttributes attributes = new MediaAttributes();

            attributes.Creation = File.GetCreationTime(filePath);
            attributes.Extension = GetExtension(filePath);

            return attributes;
        }
Esempio n. 2
0
 protected void Initialize(string filePath, IMediaProvider provider)
 {
     this.provider = provider;
     this.filePath = filePath;
     this.attributes = provider.NormalizeAttributes(filePath);
 }