Skip to main content
Implements: IHris, IConnector, ISupportsWorkerReads

Constructors

An in-memory HRIS that scripts its roster.

Parameters

Action<IReadOnlyList<SourceWorker>>

Properties

IReadOnlyList<SourceWorker>
required
Type: SourceWorkerThe workers the HRIS holds.

Methods

ApplyAsync()

Applies one change to a worker.

Parameters

required
required
CancellationToken
required

Returns

Task

CannotExpress()

Says why the HRIS cannot express a change.

Parameters

required

Returns

string

CheckConnectionAsync()

Checks the connection.

Parameters

CancellationToken
required

Returns

ConnectionCheck

GetWorkersAsync()

Reads the given workers the HRIS holds.

Parameters

IReadOnlyCollection<string>
required
CancellationToken
required

Returns

SourceWorker

ListWorkersAsync()

Lists one page of workers.

Parameters

required
CancellationToken
required

Returns

PageSourceWorker

Reported()

Builds a worker as the HRIS reports it.

Parameters

required
HrisEvent[]
required
Type: HrisEvent

Returns

SourceWorker

Reset()

Empties the roster.

TenantIdAsync()

Reads no tenant, since a scripted HRIS has none.

Parameters

CancellationToken
required

Returns

Task<string>

Value()

Reads one scripted value for a worker.

Parameters

string
required
required

Returns

string