ProcessSessionMessageEventArgs.ReleaseSession Method

Definition

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 true. The session may end up being reopened for processing immediately after closing if there are messages remaining in the session ( This depends on what other session messages may be in the queue or subscription).

public virtual void ReleaseSession ();
abstract member ReleaseSession : unit -> unit
override this.ReleaseSession : unit -> unit
Public Overridable Sub ReleaseSession ()

Applies to