Table of Contents

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

bool

UntypedKey

Gets the string key to update.

public string UntypedKey { get; }

Property Value

string

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

object

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

key string

Key to set.

value object

Value to set. Must not be null.

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 string

Key to unset.

Returns

MemoUpdate

Memo update.