C# Class InfoPathScraper.Reporting.Report

Afficher le fichier Open project: OfficeDev/PnP-Transformation

Private Properties

Свойство Type Description
ProcessNext System.Threading.Tasks.Task
PurgeDoneTasks void
TaskBody void

Méthodes publiques

Méthode Description
AddPath ( string path ) : void

Assumes all AddPath are called before Run(). This is enforced by CommandLineProcessor. If we ever get on a UI where additional files can be added after Run() is called, there will need to be a mechanism to ensure that we don't add after Run() has completed and not run any extra paths.

Report ( ) : System
Run ( ) : void

Simplified version of Run that doesn't do anything concurrent

Méthodes protégées

Méthode Description
OutputTemplate ( Model template ) : string

A string representation of the report for a single template. Deriving classes will collate template.Features in a way that makes sense for the type of report

Private Methods

Méthode Description
ProcessNext ( string path ) : System.Threading.Tasks.Task

Create a Task to load and run based on the path

PurgeDoneTasks ( ) : void

We need to remove all completed Tasks, otherwise they'll clog up our queue

TaskBody ( string path ) : void

Create a Task to load and run based on the path

Method Details

AddPath() public méthode

Assumes all AddPath are called before Run(). This is enforced by CommandLineProcessor. If we ever get on a UI where additional files can be added after Run() is called, there will need to be a mechanism to ensure that we don't add after Run() has completed and not run any extra paths.
public AddPath ( string path ) : void
path string
Résultat void

OutputTemplate() protected abstract méthode

A string representation of the report for a single template. Deriving classes will collate template.Features in a way that makes sense for the type of report
protected abstract OutputTemplate ( Model template ) : string
template Model
Résultat string

Report() public méthode

public Report ( ) : System
Résultat System

Run() public méthode

Simplified version of Run that doesn't do anything concurrent
public Run ( ) : void
Résultat void