Class ReportConverterApplication
- Namespace
- CSF.Screenplay.JsonToHtmlReport
- Assembly
- CSF.Screenplay.JsonToHtmlReport.dll
An application/background service that begins the JSON to HTML report conversion process.
public class ReportConverterApplication : BackgroundService, IHostedService, IDisposable
- Inheritance
-
ReportConverterApplication
- Implements
- Inherited Members
Constructors
ReportConverterApplication(IOptions<ReportConverterOptions>, IConvertsReportJsonToHtml)
Initializes a new instance of the ReportConverterApplication class.
public ReportConverterApplication(IOptions<ReportConverterOptions> options, IConvertsReportJsonToHtml reportConverter)
Parameters
options
IOptions<ReportConverterOptions>The options for performing the conversion.
reportConverter
IConvertsReportJsonToHtmlThe report converter instance to use for conversion.
Methods
ExecuteAsync(CancellationToken)
Executes the background service operation.
protected override Task ExecuteAsync(CancellationToken stoppingToken)
Parameters
stoppingToken
CancellationTokenA token that can be used to stop the operation.
Returns
- Task
A task that represents the asynchronous operation.