C# Class NuGet.Services.Work.JobHandlerBase

Mostra file Open project: NuGet/NuGet.Services.Work Class Usage Examples

Public Methods

Method Description
Enqueue ( Type job ) : Task
Enqueue ( Type job, string>.Dictionary payload ) : Task
Enqueue ( Type job, string>.Dictionary payload, System.TimeSpan delayFor ) : Task
Enqueue ( string job ) : Task
Enqueue ( string job, string>.Dictionary payload ) : Task
Enqueue ( string job, string>.Dictionary payload, System.TimeSpan delayFor, string jobInstanceName = null ) : Task
GetEventSources ( ) : IEnumerable
Invoke ( InvocationContext context ) : Task

Protected Methods

Method Description
BindContext ( InvocationContext context ) : InvocationResult
BindProperties ( string>.Dictionary dictionary ) : void
BindProperty ( PropertyDescriptor prop, string value ) : void
ConvertPropertyValue ( PropertyDescriptor prop, string value ) : object
Extend ( System.TimeSpan duration ) : Task
ExtendIfNeeded ( System.TimeSpan extendFor ) : Task
ExtendIfNeeded ( System.TimeSpan extendFor, System.TimeSpan threshold ) : Task
GetBindableProperties ( ) : PropertyDescriptorCollection
Invoke ( ) : Task

Method Details

BindContext() protected method

protected BindContext ( InvocationContext context ) : InvocationResult
context InvocationContext
return InvocationResult

BindProperties() protected method

protected BindProperties ( string>.Dictionary dictionary ) : void
dictionary string>.Dictionary
return void

BindProperty() protected method

protected BindProperty ( PropertyDescriptor prop, string value ) : void
prop System.ComponentModel.PropertyDescriptor
value string
return void

ConvertPropertyValue() protected method

protected ConvertPropertyValue ( PropertyDescriptor prop, string value ) : object
prop System.ComponentModel.PropertyDescriptor
value string
return object

Enqueue() public method

public Enqueue ( Type job ) : Task
job System.Type
return Task

Enqueue() public method

public Enqueue ( Type job, string>.Dictionary payload ) : Task
job System.Type
payload string>.Dictionary
return Task

Enqueue() public method

public Enqueue ( Type job, string>.Dictionary payload, System.TimeSpan delayFor ) : Task
job System.Type
payload string>.Dictionary
delayFor System.TimeSpan
return Task

Enqueue() public method

public Enqueue ( string job ) : Task
job string
return Task

Enqueue() public method

public Enqueue ( string job, string>.Dictionary payload ) : Task
job string
payload string>.Dictionary
return Task

Enqueue() public method

public Enqueue ( string job, string>.Dictionary payload, System.TimeSpan delayFor, string jobInstanceName = null ) : Task
job string
payload string>.Dictionary
delayFor System.TimeSpan
jobInstanceName string
return Task

Extend() protected method

protected Extend ( System.TimeSpan duration ) : Task
duration System.TimeSpan
return Task

ExtendIfNeeded() protected method

protected ExtendIfNeeded ( System.TimeSpan extendFor ) : Task
extendFor System.TimeSpan
return Task

ExtendIfNeeded() protected method

protected ExtendIfNeeded ( System.TimeSpan extendFor, System.TimeSpan threshold ) : Task
extendFor System.TimeSpan
threshold System.TimeSpan
return Task

GetBindableProperties() protected method

protected GetBindableProperties ( ) : PropertyDescriptorCollection
return System.ComponentModel.PropertyDescriptorCollection

GetEventSources() public abstract method

public abstract GetEventSources ( ) : IEnumerable
return IEnumerable

Invoke() protected abstract method

protected abstract Invoke ( ) : Task
return Task

Invoke() public method

public Invoke ( InvocationContext context ) : Task
context InvocationContext
return Task