ProcessSessionEventArgs Class

Definition

The ProcessSessionEventArgs contain event args related to the session being processed.

public class ProcessSessionEventArgs : EventArgs
type ProcessSessionEventArgs = class
    inherit EventArgs
Public Class ProcessSessionEventArgs
Inherits EventArgs
Inheritance
System.EventArgs
ProcessSessionEventArgs

Constructors

ProcessSessionEventArgs(ServiceBusSessionReceiver, CancellationToken)

Initializes a new instance of the ProcessSessionEventArgs class.

Properties

CancellationToken

A System.Threading.CancellationToken instance which will be cancelled when StopProcessingAsync(CancellationToken) is called, or when the session lock has been lost.

SessionId

The Session Id associated with the session being processed.

SessionLockedUntil

Gets the System.DateTimeOffset that the current session is locked until.

Methods

GetSessionStateAsync(CancellationToken)

Gets the session state.

SetSessionStateAsync(BinaryData, CancellationToken)

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

Applies to