MessageSession Class
Represents a message session that allows grouping of related messages for processing in a single transaction.
System.Object
Microsoft.ServiceBus.Messaging.MessageClientEntity
Microsoft.ServiceBus.Messaging.MessageReceiver
Microsoft.ServiceBus.Messaging.MessageSession
Microsoft.ServiceBus.Messaging.MessageClientEntity
Microsoft.ServiceBus.Messaging.MessageReceiver
Microsoft.ServiceBus.Messaging.MessageSession
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
The MessageSession type exposes the following members.
| Name | Description | |
|---|---|---|
|
BatchFlushInterval | Gets the batch flush interval. (Inherited from MessageReceiver.) |
|
BatchingEnabled | Gets a value indicating whether the batching is enabled. (Inherited from MessageReceiver.) |
|
IsClosed | Gets or sets a value that indicates whether the message client entity is closed. (Inherited from MessageClientEntity.) |
|
Mode | Gets the message receive mode. (Inherited from MessageReceiver.) |
|
Path | Gets the path of the queue or topic, relative to the MessagingFactory base address. (Overrides MessageReceiver.Path.) |
|
PrefetchCount | Gets or sets the number of messages that the message receiver can simultaneously request. (Overrides MessageReceiver.PrefetchCount.) |
|
SessionId | Gets or sets the message session identifier. |
| Name | Description | |
|---|---|---|
|
Abandon | Discards the message and relinquishes the message lock ownership. (Inherited from MessageReceiver.) |
|
Abort | Aborts the message client entity and puts its status into a closing state. (Inherited from MessageClientEntity.) |
|
BeginAbandon | Begins an asynchronous operation to abandon the message and relinquish its lock. (Inherited from MessageReceiver.) |
|
BeginClose | Begins an asynchronous operation to close the message client entity. (Inherited from MessageClientEntity.) |
|
BeginComplete | Begins an asynchronous operation to complete receipt of a message. (Inherited from MessageReceiver.) |
|
BeginDeadLetter(Guid, AsyncCallback, Object) | Begins an asynchronous operation to move a message to the dead letter queue. (Inherited from MessageReceiver.) |
|
BeginDeadLetter(Guid, String, String, AsyncCallback, Object) | Begins an asynchronous operation to move a message to the dead letter queue. (Inherited from MessageReceiver.) |
|
BeginDefer | Begins an asynchronous operation to suspend receipt of a message. (Inherited from MessageReceiver.) |
|
BeginGetState | Begins an asynchronous operation to set the state of the message session. |
|
BeginReceive(AsyncCallback, Object) | Begins an asynchronous operation to receive a message. (Inherited from MessageReceiver.) |
|
BeginReceive(Int64, AsyncCallback, Object) | Begins an asynchronous operation to receive a message. (Inherited from MessageReceiver.) |
|
BeginReceive(TimeSpan, AsyncCallback, Object) | Begins an asynchronous operation to receive a message. (Inherited from MessageReceiver.) |
|
BeginSetState | Begins an asynchronous operation to set the state of the message session. |
|
Close | Closes the message client entity and puts its status into a closed state. (Inherited from MessageClientEntity.) |
|
Complete | Completes the receive operation on a message. (Inherited from MessageReceiver.) |
|
DeadLetter(Guid) | Moves the undelivered message to the dead letter queue. (Inherited from MessageReceiver.) |
|
DeadLetter(Guid, String, String) | Moves the undelivered message to the dead letter queue. (Inherited from MessageReceiver.) |
|
Defer | Indicates that the receiver wants to defer the processing for the message. (Inherited from MessageReceiver.) |
|
EndAbandon | Ends the asynchronous operation to abandon the message and relinquish its lock. (Inherited from MessageReceiver.) |
|
EndClose | Finishes an asynchronous operation to close the message client entity. (Inherited from MessageClientEntity.) |
|
EndComplete | Ends the asynchronous operation to complete receipt of a message. (Inherited from MessageReceiver.) |
|
EndDeadLetter | Ends an asynchronous operation to move the message to the dead letter queue. (Inherited from MessageReceiver.) |
|
EndDefer | Ends an asynchronous operation to defer receipt of a message. (Inherited from MessageReceiver.) |
|
EndGetState | Ends an asynchronous operation to get the state of the message session. |
|
EndReceive | Ends an asynchronous operation to receive a message. (Inherited from MessageReceiver.) |
|
EndSetState | Ends an asynchronous operation to set the state of the message session. |
|
Equals | (Inherited from Object.) |
|
Fault | Puts the message client entity into a faulted state. (Inherited from MessageClientEntity.) |
|
Finalize | (Inherited from Object.) |
|
GetHashCode | (Inherited from Object.) |
|
GetState | Gets the state of the message session. |
|
GetType | (Inherited from Object.) |
|
MemberwiseClone | (Inherited from Object.) |
|
OnAbandon | Abandons the message. (Overrides MessageReceiver.OnAbandon(TrackingContext, IEnumerable<Guid>, TimeSpan).) |
|
OnAbort | Aborts the message session. (Overrides MessageClientEntity.OnAbort().) |
|
OnBeginAbandon | Begins an asynchronous operation to abandon the message and relinquish its lock. (Overrides MessageReceiver.OnBeginAbandon(TrackingContext, IEnumerable<Guid>, TimeSpan, AsyncCallback, Object).) |
|
OnBeginClose | Begins an asynchronous operation to close the communication object for the message session. (Overrides MessageClientEntity.OnBeginClose(TimeSpan, AsyncCallback, Object).) |
|
OnBeginComplete | Executes upon calling the OnComplete or BeginComplete operation. (Overrides MessageReceiver.OnBeginComplete(TrackingContext, IEnumerable<Guid>, TimeSpan, AsyncCallback, Object).) |
|
OnBeginDeadLetter | Executes upon calling the OnDeadLetter or BeginDeadLetter operation. (Overrides MessageReceiver.OnBeginDeadLetter(TrackingContext, IEnumerable<Guid>, String, String, TimeSpan, AsyncCallback, Object).) |
|
OnBeginDefer | Executes upon calling the OnDefer or BeginDefer operation. (Overrides MessageReceiver.OnBeginDefer(TrackingContext, IEnumerable<Guid>, TimeSpan, AsyncCallback, Object).) |
|
OnBeginGetState | Executes upon calling the OnGetState or BeginGetState operation. |
|
OnBeginOpen | Executes upon calling the OnOpen operation of the message receiver. (Overrides MessageClientEntity.OnBeginOpen(TimeSpan, AsyncCallback, Object).) |
|
OnBeginSetState | Executes upon calling the OnSetState or BeginSetState operation. |
|
OnBeginTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, AsyncCallback, Object) | Executes upon calling the OnTryReceive or BeginTryReceive operation of the message receiver. (Overrides MessageReceiver.OnBeginTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, AsyncCallback, Object).) |
|
OnBeginTryReceive(TrackingContext, Int32, TimeSpan, AsyncCallback, Object) | Executes upon calling the OnTryReceive or BeginTryReceive operation of the message receiver. (Overrides MessageReceiver.OnBeginTryReceive(TrackingContext, Int32, TimeSpan, AsyncCallback, Object).) |
|
OnClose | Executes upon calling the Close operation. (Inherited from MessageClientEntity.) |
|
OnClosed | Occurs when the message client entity is transitioned into a closing state. (Inherited from MessageClientEntity.) |
|
OnComplete | Completes the message receive operation. (Overrides MessageReceiver.OnComplete(TrackingContext, IEnumerable<Guid>, TimeSpan).) |
|
OnDeadLetter | Deadletters a message. (Overrides MessageReceiver.OnDeadLetter(TrackingContext, IEnumerable<Guid>, String, String, TimeSpan).) |
|
OnDefer | Defers the delivery of a message. (Overrides MessageReceiver.OnDefer(TrackingContext, IEnumerable<Guid>, TimeSpan).) |
|
OnEndAbandon | Ends an asynchronous operation to abandon the message and relinquish its lock. (Overrides MessageReceiver.OnEndAbandon(IAsyncResult).) |
|
OnEndClose | Ends an asynchronous operation to close the communication object for the message session. (Overrides MessageClientEntity.OnEndClose(IAsyncResult).) |
|
OnEndComplete | Executes the end complete operation of the message receiver. (Overrides MessageReceiver.OnEndComplete(IAsyncResult).) |
|
OnEndDeadLetter | Executes the end deadletter operation of the message receiver. (Overrides MessageReceiver.OnEndDeadLetter(IAsyncResult).) |
|
OnEndDefer | Executes the end defer operation of the message receiver. (Overrides MessageReceiver.OnEndDefer(IAsyncResult).) |
|
OnEndGetState | Executes upon calling the OnGetState or EndGetState operation. |
|
OnEndOpen | Ends the asynchronous operation to open a communication object for the message session. (Overrides MessageClientEntity.OnEndOpen(IAsyncResult).) |
|
OnEndSetState | Ends the asynchronous operation to set the state of the message session. |
|
OnEndTryReceive | Executes the end try receive operation of the message receiver. (Overrides MessageReceiver.OnEndTryReceive(IAsyncResult, IEnumerable<BrokeredMessage>).) |
|
OnFaulted | Executes upon calling the Fault operation. (Inherited from MessageClientEntity.) |
|
OnGetState | Executes upon calling the GetState operation. |
|
OnOpen | Executes upon calling the operation to open the message client entity. (Inherited from MessageClientEntity.) |
|
OnOpened | Executes when the message client entity is opened. (Inherited from MessageClientEntity.) |
|
OnSetState | Executes upon calling the SetState operation. |
|
OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>) | Attempts a message receive operation. (Overrides MessageReceiver.OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>).) |
|
OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>) | Attempts a message receive operation. (Overrides MessageReceiver.OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>).) |
|
Receive() | Receives a BrokeredMessage from the current queue or topic. (Inherited from MessageReceiver.) |
|
Receive(Int64) | Receives a message from the current queue or topic. (Inherited from MessageReceiver.) |
|
Receive(TimeSpan) | Receives a BrokeredMessage from the current queue or topic. (Inherited from MessageReceiver.) |
|
SetState | Sets the state of the message session. |
|
ThrowIfClosed | Throws an exception if the message client entity is closed. (Inherited from MessageClientEntity.) |
|
ThrowIfDisposed | Throws an exception if the message client entity is disposed. (Inherited from MessageClientEntity.) |
|
ThrowIfDisposedOrImmutable | Throws an exception if the client is disposed or immutable. (Inherited from MessageClientEntity.) |
|
ThrowIfDisposedOrNotOpen | Throws an exception if the client is disposed or not open. (Inherited from MessageClientEntity.) |
|
ThrowIfFaulted | Throws an exception if the client is faulted. (Inherited from MessageClientEntity.) |
|
ToString | (Inherited from Object.) |