ProcessSessionEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.EventArgsProcessSessionEventArgs
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) |