C# Class CalendarAggregator.Scheduler

Mostra file Open project: judell/elmcity

Public Methods

Method Description
EnsureTaskRecord ( string id, TaskType type ) : void
ExistsLockRecordForId ( string id, TaskType type ) : bool
ExistsTaskRecordForId ( string id, TaskType type ) : bool
FetchTaskForId ( string id, TaskType type ) : Task
InitTaskForId ( string id, TaskType type ) : void
IntervalFromType ( TaskType type ) : System.TimeSpan
IsAbandoned ( string id, TaskType type ) : bool
IsLockedId ( string id, TaskType type ) : bool
LockId ( string id, TaskType type ) : ElmcityUtils.HttpResponse
MaybeStartTaskForId ( System.DateTime now, Calinfo calinfo, TaskType type ) : TaskType
StartTaskForId ( string id, TaskType type ) : ElmcityUtils.HttpResponse
StopTaskForId ( string id, TaskType type ) : void
StoreTaskForId ( Task task, string id, TaskType type ) : void
UnlockId ( string id, TaskType type ) : ElmcityUtils.HttpResponse
UpdateStartTaskForId ( string id, TaskType type ) : ElmcityUtils.HttpResponse

Method Details

EnsureTaskRecord() public static method

public static EnsureTaskRecord ( string id, TaskType type ) : void
id string
type TaskType
return void

ExistsLockRecordForId() public static method

public static ExistsLockRecordForId ( string id, TaskType type ) : bool
id string
type TaskType
return bool

ExistsTaskRecordForId() public static method

public static ExistsTaskRecordForId ( string id, TaskType type ) : bool
id string
type TaskType
return bool

FetchTaskForId() public static method

public static FetchTaskForId ( string id, TaskType type ) : Task
id string
type TaskType
return Task

InitTaskForId() public static method

public static InitTaskForId ( string id, TaskType type ) : void
id string
type TaskType
return void

IntervalFromType() public static method

public static IntervalFromType ( TaskType type ) : System.TimeSpan
type TaskType
return System.TimeSpan

IsAbandoned() public static method

public static IsAbandoned ( string id, TaskType type ) : bool
id string
type TaskType
return bool

IsLockedId() public static method

public static IsLockedId ( string id, TaskType type ) : bool
id string
type TaskType
return bool

LockId() public static method

public static LockId ( string id, TaskType type ) : ElmcityUtils.HttpResponse
id string
type TaskType
return ElmcityUtils.HttpResponse

MaybeStartTaskForId() public static method

public static MaybeStartTaskForId ( System.DateTime now, Calinfo calinfo, TaskType type ) : TaskType
now System.DateTime
calinfo Calinfo
type TaskType
return TaskType

StartTaskForId() public static method

public static StartTaskForId ( string id, TaskType type ) : ElmcityUtils.HttpResponse
id string
type TaskType
return ElmcityUtils.HttpResponse

StopTaskForId() public static method

public static StopTaskForId ( string id, TaskType type ) : void
id string
type TaskType
return void

StoreTaskForId() public static method

public static StoreTaskForId ( Task task, string id, TaskType type ) : void
task Task
id string
type TaskType
return void

UnlockId() public static method

public static UnlockId ( string id, TaskType type ) : ElmcityUtils.HttpResponse
id string
type TaskType
return ElmcityUtils.HttpResponse

UpdateStartTaskForId() public static method

public static UpdateStartTaskForId ( string id, TaskType type ) : ElmcityUtils.HttpResponse
id string
type TaskType
return ElmcityUtils.HttpResponse