C# Класс InfoPathScraper.Reporting.Report

Показать файл Открыть проект

Private Properties

Свойство Тип Описание
ProcessNext System.Threading.Tasks.Task
PurgeDoneTasks void
TaskBody void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddPath() публичный Метод

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
Результат void

OutputTemplate() защищенный абстрактный Метод

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
Результат string

Report() публичный Метод

public Report ( ) : System
Результат System

Run() публичный Метод

Simplified version of Run that doesn't do anything concurrent
public Run ( ) : void
Результат void