ResiliencePropertyKey
Defined in: src/core.ts:204
A typed key for context.properties (Polly’s ResiliencePropertyKey): const TENANT = new ResiliencePropertyKey<string>('tenant').
Type Parameters
Section titled “Type Parameters”V
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ResiliencePropertyKey<
V>(key):ResiliencePropertyKey<V>
Defined in: src/core.ts:206
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ResiliencePropertyKey<V>
Properties
Section titled “Properties”
readonlykey:string
Defined in: src/core.ts:205
Methods
Section titled “Methods”get(
context):V|undefined
Defined in: src/core.ts:209
Parameters
Section titled “Parameters”context
Section titled “context”properties
Section titled “properties”Map<string, unknown>
Returns
Section titled “Returns”V | undefined
set(
context,value):void
Defined in: src/core.ts:212
Parameters
Section titled “Parameters”context
Section titled “context”properties
Section titled “properties”Map<string, unknown>
V
Returns
Section titled “Returns”void