C# Class JsonDataCreator, code

Background Service which creates the JSON Files for the machine
Inheritance: IHostedService, IDisposable
ファイルを表示 Open project: shendongnian/code

Public Methods

Method 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 method

Disposes the Task
public Dispose ( ) : void
return void

JsonDataCreator() public method

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

StartAsync() public method

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

StopAsync() public method

Stops the Task
public StopAsync ( CancellationToken, cancellationToken ) : Task,
cancellationToken CancellationToken,
return Task,