Class DispatchMiddlewareContext
- Namespace
- DurableTask.Core.Middleware
- Assembly
- DurableTask.Core.dll
Context data that can be used to share data between middleware.
public class DispatchMiddlewareContext
- Inheritance
-
DispatchMiddlewareContext
- Inherited Members
Properties
Properties
Gets a key/value collection that can be used to share data between middleware.
public IDictionary<string, object> Properties { get; }
Property Value
Methods
GetProperty<T>()
Gets a property value from the context using the full name of T
.
public T GetProperty<T>()
Returns
- T
The value of the property or
default(T)
if the property is not defined.
Type Parameters
T
The type of the property.
GetProperty<T>(string)
Gets a named property value from the context.
public T GetProperty<T>(string key)
Parameters
key
stringThe name of the property value.
Returns
- T
The value of the property or
default(T)
if the property is not defined.
Type Parameters
T
SetProperty<T>(string, T)
Sets a named property value to the context.
public void SetProperty<T>(string key, T value)
Parameters
key
stringThe name of the property.
value
TThe value of the property.
Type Parameters
T
The type of the property.
SetProperty<T>(T)
Sets a property value to the context using the full name of the type as the key.
public void SetProperty<T>(T value)
Parameters
value
TThe value of the property.
Type Parameters
T
The type of the property.