C# Class Machete.Data.WorkerCache

Inheritance: IWorkerCache
Show file Open project: SavageLearning/Machete

Private Properties

Property Type Description
FillCache void
GetDB MacheteContext

Public Methods

Method Description
Dispose ( ) : void
ExpireMembers ( ) : bool

Expires active workers based on expiration date

GetCache ( ) : IEnumerable
ReactivateMembers ( ) : bool

Reactivates sanctioned workers based on reactivation date

Refresh ( ) : void
WorkerCache ( Func factory ) : System

Private Methods

Method Description
FillCache ( ) : void
GetDB ( ) : MacheteContext

Method Details

Dispose() public method

public Dispose ( ) : void
return void

ExpireMembers() public method

Expires active workers based on expiration date
public ExpireMembers ( ) : bool
return bool

GetCache() public method

public GetCache ( ) : IEnumerable
return IEnumerable

ReactivateMembers() public method

Reactivates sanctioned workers based on reactivation date
public ReactivateMembers ( ) : bool
return bool

Refresh() public method

public Refresh ( ) : void
return void

WorkerCache() public method

public WorkerCache ( Func factory ) : System
factory Func
return System