C# Class NuGet.Services.Work.WorkService

Inheritance: NuGet.Services.Http.NuGetApiService
Mostrar archivo Open project: NuGet/NuGet.Services.Work

Public Properties

Property Type Description
DefaultWorkersPerCore int

Public Methods

Method Description
GetAllAvailableJobs ( ) : IEnumerable
GetCurrentStatus ( ) : Task
GetEventSources ( ) : IEnumerable
RegisterComponents ( ContainerBuilder builder ) : void
WorkService ( ServiceName name, ServiceHost host ) : System

Protected Methods

Method Description
ConfigureAttributeRouting ( System.Web.Http.Routing.DefaultInlineConstraintResolver resolver ) : void
OnRun ( ) : Task
OnShutdown ( ) : void
OnStart ( ) : Task

Private Methods

Method Description
CreateWorker ( int id ) : Worker
DiscoverJobs ( ) : void

Method Details

ConfigureAttributeRouting() protected method

protected ConfigureAttributeRouting ( System.Web.Http.Routing.DefaultInlineConstraintResolver resolver ) : void
resolver System.Web.Http.Routing.DefaultInlineConstraintResolver
return void

GetAllAvailableJobs() public static method

public static GetAllAvailableJobs ( ) : IEnumerable
return IEnumerable

GetCurrentStatus() public method

public GetCurrentStatus ( ) : Task
return Task

GetEventSources() public method

public GetEventSources ( ) : IEnumerable
return IEnumerable

OnRun() protected method

protected OnRun ( ) : Task
return Task

OnShutdown() protected method

protected OnShutdown ( ) : void
return void

OnStart() protected method

protected OnStart ( ) : Task
return Task

RegisterComponents() public method

public RegisterComponents ( ContainerBuilder builder ) : void
builder Autofac.ContainerBuilder
return void

WorkService() public method

public WorkService ( ServiceName name, ServiceHost host ) : System
name ServiceName
host ServiceHost
return System

Property Details

DefaultWorkersPerCore public_oe static_oe property

public static int DefaultWorkersPerCore
return int