public byte[] Read(Guid id, string filename, out Dictionary <string, string> metaData)
        {
            metaData = null;
            Dictionary <string, string> storeMetaData = null;

            byte[] data = fileStorageHelper.GetFile(configuration.Share, configuration.Folder, GetFullFilename(id, filename), out storeMetaData);
            if (storeMetaData != null)
            {
                metaData = storeMetaData.ToDictionary(m => m.Key.Replace(MetaDataPrefix, ""), m => m.Value);
            }
            return(data);
        }
Пример #2
0
 public byte[] Read(Guid id, string filename)
 {
     return(fileStorageHelper.GetFile(configuration.Share, configuration.Folder, GetFullFilename(id, filename)));
 }