ServiceBusSessionMessageActions 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.
Represents the set of actions that can be performed on a session and a message received from a ServiceBusReceivedMessage.
public class ServiceBusSessionMessageActions : Microsoft.Azure.WebJobs.ServiceBus.ServiceBusMessageActions
type ServiceBusSessionMessageActions = class
inherit ServiceBusMessageActions
Public Class ServiceBusSessionMessageActions
Inherits ServiceBusMessageActions
- Inheritance
Constructors
ServiceBusSessionMessageActions() |
Initializes a new instance of the ServiceBusSessionMessageActions class for mocking use in testing. |
Properties
SessionLockedUntil |
Gets the DateTimeOffset that the receiver's session is locked until. |
Methods
AbandonMessageAsync(ServiceBusReceivedMessage, IDictionary<String,Object>, CancellationToken) |
Abandons a ServiceBusReceivedMessage.This will make the message available again for immediate processing as the lock on the message held by the receiver will be released. (Inherited from ServiceBusMessageActions) |
CompleteMessageAsync(ServiceBusReceivedMessage, CancellationToken) |
Completes a ServiceBusReceivedMessage. This will delete the message from the service. (Inherited from ServiceBusMessageActions) |
DeadLetterMessageAsync(ServiceBusReceivedMessage, Dictionary<String,Object>, String, String, CancellationToken) |
Moves a message to the dead-letter subqueue. (Inherited from ServiceBusMessageActions) |
DeadLetterMessageAsync(ServiceBusReceivedMessage, IDictionary<String,Object>, CancellationToken) |
Moves a message to the dead-letter subqueue. (Inherited from ServiceBusMessageActions) |
DeadLetterMessageAsync(ServiceBusReceivedMessage, String, String, CancellationToken) |
Moves a message to the dead-letter subqueue. (Inherited from ServiceBusMessageActions) |
DeferMessageAsync(ServiceBusReceivedMessage, IDictionary<String,Object>, CancellationToken) |
Indicates that the receiver wants to defer the processing for the message. (Inherited from ServiceBusMessageActions) |
GetSessionStateAsync(CancellationToken) |
Gets the session state. |
ReleaseSession() |
Releases the session that is being processed. No new receives will be initiated for the session before the
session is closed. Any already received messages will still be delivered to the user message handler, and in-flight message handlers
will be allowed to complete. Messages will still be completed automatically if AutoCompleteMessages
is |
RenewMessageLockAsync(ServiceBusReceivedMessage, CancellationToken) |
Renews the lock on the message. The lock will be renewed based on the setting specified on the queue. (Inherited from ServiceBusMessageActions) |
RenewSessionLockAsync(CancellationToken) |
Renews the lock on the session specified by the SessionId. The lock will be renewed based on the setting specified on the entity. |
SetSessionStateAsync(BinaryData, CancellationToken) |
Set a custom state on the session which can be later retrieved using GetSessionStateAsync(CancellationToken) |
Applies to
Azure SDK for .NET