C# Class JsonDataCreator, code

Background Service which creates the JSON Files for the machine
Inheritance: IHostedService, IDisposable
Afficher le fichier Open project: shendongnian/code

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes the Task

JsonDataCreator ( ILogger, logger )

Constructor

StartAsync ( CancellationToken, cancellationToken ) : Task,

Task which is executed Asynchronous

StopAsync ( CancellationToken, cancellationToken ) : Task,

Stops the Task

Method Details

Dispose() public méthode

Disposes the Task
public Dispose ( ) : void
Résultat void

JsonDataCreator() public méthode

Constructor
public JsonDataCreator ( ILogger, logger )
logger ILogger, Logger functionallity

StartAsync() public méthode

Task which is executed Asynchronous
public StartAsync ( CancellationToken, cancellationToken ) : Task,
cancellationToken CancellationToken, Cancellation token for stopping the Task
Résultat Task,

StopAsync() public méthode

Stops the Task
public StopAsync ( CancellationToken, cancellationToken ) : Task,
cancellationToken CancellationToken,
Résultat Task,