public SynchronizationReport GetReport (SynchronizationReportName name) { using (var fileStream = File.OpenRead (Path.Combine (_reportDirectory, name.ToString()))) { return Serializer<SynchronizationReport>.DeserializeFrom (fileStream); } }
public Stream GetReportStream (SynchronizationReportName name) { return File.OpenRead (Path.Combine (_reportDirectory, name.ToString())); }
public void DeleteReport (SynchronizationReportName name) { File.Delete (Path.Combine (_reportDirectory, name.ToString())); }