SessionHandlerOptions 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 options for the session handler.
public class SessionHandlerOptions
type SessionHandlerOptions = class
Public Class SessionHandlerOptions
- Inheritance
-
SessionHandlerOptions
Constructors
SessionHandlerOptions() |
Initializes a new instance of the SessionHandlerOptions class. |
Properties
AutoComplete |
Gets or sets whether the autocomplete option of the session handler is enabled. If this value is true, if the handler returns without any failure, then the message is completed and will not show up in the session; if any exception is thrown from the handler, the message is abandoned and the DeliveryCount of this message will increase by one. If this value is false, if the handler returns without any failure, then user has to write the logic to explicitly complete the message, otherwise the message is not considered 'completed' and will reappear in the session. |
AutoRenewTimeout |
Gets or sets the time needed before the session renew its state. If a session lock is going to expire, this value is the duration for the session lock to be automatically renewed. |
MaxConcurrentSessions |
Gets or sets the maximum number of existing sessions.Setting this value to be greater than the max number of active sessions in the service will not increase message throughput. |
MessageWaitTimeout |
Gets or sets the time needed before the message waiting expires.This is the time the session-pump waits before closing down the current session and switching to a different session. |
Events
ExceptionReceived |
Occurs when an exception was received during session handling. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기