Interface ProviderOptions
interface ProviderOptions {
key?: string;
name?: string;
perAttempt?: boolean;
steps?: readonly [string, string];
}
key?: string;
name?: string;
perAttempt?: boolean;
steps?: readonly [string, string];
}
Properties
Optional Readonlykey
key?: string
The key of the service it supplies: the method's name when not given.
Optional Readonlyname
name?: string
Its name, unique among the workflow's providers: the method's name when not given.
Optional Readonlyper Attempt
perAttempt?: boolean
true to make an instance for every attempt of every step it serves:
a provider of attempt scope. Otherwise it is of journey scope, called
once per journey, for the first attempt that requests its key.
Optional Readonlysteps
steps?: readonly [string, string]
The steps it serves, by name, and <step name>_rescue for a rescue step.
When not given, it is attached to no step and serves every step that
requests its key and has no provider of its own for it.
What
@providersays about a service provider.