共用方式為


SessionHandlerOptions.AutoComplete Property

Definition

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.

public bool AutoComplete { get; set; }
member this.AutoComplete : bool with get, set
Public Property AutoComplete As Boolean

Property Value

true if the autocomplete option of the session handler is enabled; otherwise, false.

Applies to