Class MemoUpdate
- Namespace
- Temporalio.Workflows
- Assembly
- Temporalio.dll
A single mutation to a memo key. This can be a set or, if HasValue is false, an unset.
public class MemoUpdate
- Inheritance
-
MemoUpdate
- Inherited Members
Properties
HasValue
Gets a value indicating whether this update has a value to set or represents an unset.
public bool HasValue { get; }
Property Value
UntypedKey
Gets the string key to update.
public string UntypedKey { get; }
Property Value
UntypedValue
Gets the value to update or fail if there is not a value (i.e. this is an unset).
public object UntypedValue { get; }
Property Value
Exceptions
- InvalidOperationException
If there is no value.
Methods
ValueSet(string, object)
Create an update to set a key.
public static MemoUpdate ValueSet(string key, object value)
Parameters
Returns
- MemoUpdate
Memo update.
Exceptions
- ArgumentException
If the value is null.
ValueUnset(string)
Create an update to unset a key.
public static MemoUpdate ValueUnset(string key)
Parameters
key
stringKey to unset.
Returns
- MemoUpdate
Memo update.