C# Class OpenCover.Framework.Persistance.FilePersistance

Simple file persistence of the model
Inheritance: BasePersistance
显示文件 Open project: OpenCover/opencover Class Usage Examples

Public Methods

Method Description
Commit ( ) : void

we are done and the data needs one last clean up

FilePersistance ( ICommandLine commandLine, log4net.ILog logger ) : System

Construct a file persistence object

Initialise ( string fileName, bool loadExisting ) : bool

Initialise the file persistence

Private Methods

Method Description
HandleFileAccess ( System.Action loadFile, string fileName ) : bool
LoadCoverageFile ( ) : void
SaveCoverageFile ( ) : bool

Method Details

Commit() public method

we are done and the data needs one last clean up
public Commit ( ) : void
return void

FilePersistance() public method

Construct a file persistence object
public FilePersistance ( ICommandLine commandLine, log4net.ILog logger ) : System
commandLine ICommandLine
logger log4net.ILog
return System

Initialise() public method

Initialise the file persistence
public Initialise ( string fileName, bool loadExisting ) : bool
fileName string The filename to save to
loadExisting bool
return bool