C# Class MyService, code

Inheritance: IMyService
Datei anzeigen Open project: shendongnian/code Class Usage Examples

Private Properties

Property Type Description
BeginJob int
DoSomething Task
DoSomethingElse Task
GetFoo object
GetJobStatus JobStatus

Public Methods

Method 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

Method Description
BeginJob ( ) : int
DoSomething ( ) : Task
DoSomethingElse ( ) : Task
GetFoo ( int pageId ) : object
GetJobStatus ( int id ) : JobStatus

Method Details

ExecuteAsync() public method

public ExecuteAsync ( CancellationToken token ) : Task
token CancellationToken
return Task

Get() public method

public Get ( string id ) : MyModel
id string
return MyModel

MyService() public method

public MyService ( )

MyService() public method

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

PostAsync() public method

public PostAsync ( MyType0 input ) : Task
input MyType0
return Task

RunJobs() public method

public RunJobs ( IProgress progress ) : void
progress IProgress
return void

Stop() public method

public Stop ( )