Example #1
0
        public Data GetItem(DataParameter dataParameter)
        {
            var fileAbsoluteName = GetFileAbsoluteName(dataParameter.PhysicalName);
            var bytes = SystemFile.ReadAllBytes(fileAbsoluteName);

            var result = Data.FromPhysicalName(dataParameter.PhysicalName, bytes);
            return result;
        }
Example #2
0
 public void Remove(DataParameter dataParameter)
 {
     Remove(new[] { dataParameter });
 }
Example #3
0
 public Data GetItem(DataParameter dataParameter)
 {
     var result = _dispatcher.Dispatch<DataGetByPhysicalNameQuery, Data>(new DataGetByPhysicalNameQuery(dataParameter.Id));
     return result;
 }