C# Class MyService, code

Inheritance: IMyService
Afficher le fichier Open project: shendongnian/code Class Usage Examples

Private Properties

Свойство Type Description
BeginJob int
DoSomething Task
DoSomethingElse Task
GetFoo object
GetJobStatus JobStatus

Méthodes publiques

Méthode Description
ExecuteAsync ( CancellationToken token ) : Task
Get ( string id ) : MyModel
MyService ( )
MyService ( IJobContainer sequentialJobs, IJobContainer parallelJobs )
PostAsync ( MyType0 input ) : Task
RunJobs ( IProgress progress ) : void
Stop ( )

Private Methods

Méthode Description
BeginJob ( ) : int
DoSomething ( ) : Task
DoSomethingElse ( ) : Task
GetFoo ( int pageId ) : object
GetJobStatus ( int id ) : JobStatus

Method Details

ExecuteAsync() public méthode

public ExecuteAsync ( CancellationToken token ) : Task
token CancellationToken
Résultat Task

Get() public méthode

public Get ( string id ) : MyModel
id string
Résultat MyModel

MyService() public méthode

public MyService ( )

MyService() public méthode

public MyService ( IJobContainer sequentialJobs, IJobContainer parallelJobs )
sequentialJobs IJobContainer
parallelJobs IJobContainer

PostAsync() public méthode

public PostAsync ( MyType0 input ) : Task
input MyType0
Résultat Task

RunJobs() public méthode

public RunJobs ( IProgress progress ) : void
progress IProgress
Résultat void

Stop() public méthode

public Stop ( )