C# 클래스 CommanderDemo.Web.TaskRegistry

Configure the schedule for the background tasks we want FluentScheduler to run for us in the background.
상속: Registry
파일 보기 프로젝트 열기: Command-R/CommanderDemo

공개 메소드들

메소드 설명
TaskRegistry ( SimpleInjector.Container container ) : System

비공개 메소드들

메소드 설명
PingMe ( ) : void

Just an example, serves no point, but you should see it in the Output window due to the LoggingHandler.

Send ( object command, System.AppContext context ) : void

Since each task execution runs in an background thread, set up container lifetime and provide context.

StartQueueInfiniteLoop ( ) : void

The MongoQueueService uses tailable cursors which block until a new item is added. Since all tasks run in the background, no problem.

TaskManager_UnobservedTaskException ( FluentScheduler.Model.TaskExceptionInformation sender, UnhandledExceptionEventArgs e ) : void

Any exceptions that occur in the background task threads are caught here. We should probably log.

메소드 상세

TaskRegistry() 공개 메소드

public TaskRegistry ( SimpleInjector.Container container ) : System
container SimpleInjector.Container
리턴 System