Share via


IMessageSession.SetStateAsync(Byte[]) Method

Definition

Set a custom state on the session which can be later retrieved using GetStateAsync()

public System.Threading.Tasks.Task SetStateAsync (byte[] sessionState);
abstract member SetStateAsync : byte[] -> System.Threading.Tasks.Task
Public Function SetStateAsync (sessionState As Byte()) As Task

Parameters

sessionState
Byte[]

A byte array of session state

Returns

Remarks

This state is stored on Service Bus forever unless you set an empty state on it.

Applies to