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 : IHostedService
- Inheritance
-
ReportConverterApplication
- Implements
- Inherited Members
Constructors
ReportConverterApplication(IOptions<ReportConverterOptions>, IConvertsReportJsonToHtml, IHostApplicationLifetime)
Initializes a new instance of the ReportConverterApplication class.
public ReportConverterApplication(IOptions<ReportConverterOptions> options, IConvertsReportJsonToHtml reportConverter, IHostApplicationLifetime lifetime)
Parameters
optionsIOptions<ReportConverterOptions>The options for performing the conversion.
reportConverterIConvertsReportJsonToHtmlThe report converter instance to use for conversion.
lifetimeIHostApplicationLifetimeThe application lifetime
Methods
StartAsync(CancellationToken)
Executes the application, to perform its work.
public Task StartAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenA cancellation token
Returns
- Task
A task
StopAsync(CancellationToken)
Unused, always returns a completed task.
public Task StopAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenA cancellation token
Returns
- Task
A task