Show / Hide Table of Contents

Interface IBrokeredMessage

Contract interface for brokered messages.

Inherited Members
IMessageEnvelope.GetContent()
Namespace: Kephas.Messaging.Distributed
Assembly: Kephas.Messaging.dll
Syntax
public interface IBrokeredMessage : IIdentifiable, IMessageEnvelope, IMessage

Properties

| Improve this Doc View Source

BearerToken

Gets the bearer token.

Declaration
string BearerToken { get; }
Property Value
Type Description
System.String

The bearer token.

| Improve this Doc View Source

Channel

Gets the channel.

Declaration
string Channel { get; }
Property Value
Type Description
System.String

The channel.

| Improve this Doc View Source

Content

Gets the message to send.

Declaration
IMessage Content { get; }
Property Value
Type Description
IMessage

The message.

| Improve this Doc View Source

Id

Gets the identifier.

Declaration
string Id { get; }
Property Value
Type Description
System.String

The identifier.

| Improve this Doc View Source

IsOneWay

Gets a value indicating whether this message is one way.

Declaration
bool IsOneWay { get; }
Property Value
Type Description
System.Boolean

True if this message is one way, false if not.

| Improve this Doc View Source

Recipients

Gets the recipients.

Declaration
IEnumerable<IEndpoint> Recipients { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<IEndpoint>

The recipients.

| Improve this Doc View Source

ReplyToMessageId

Gets the identifier of the message to reply to.

Declaration
string ReplyToMessageId { get; }
Property Value
Type Description
System.String

The identifier of the reply to message.

| Improve this Doc View Source

Sender

Gets the sender of the message.

Declaration
IEndpoint Sender { get; }
Property Value
Type Description
IEndpoint

The message sender.

| Improve this Doc View Source

Timeout

Gets the timeout when waiting for responses.

Declaration
TimeSpan? Timeout { get; }
Property Value
Type Description
System.Nullable<System.TimeSpan>

The response timeout.

Remarks

A value of null means indefinitely waiting, but it is strongly discouraged to wait indefinitely for a response. The default value DefaultTimeout can be used.

Methods

| Improve this Doc View Source

Clone(IEnumerable<IEndpoint>)

Makes a deep copy of this object, optionally replacing the existing recipients with the provided ones.

Declaration
IBrokeredMessage Clone(IEnumerable<IEndpoint> recipients = null)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IEndpoint> recipients

Optional. The recipients.

Returns
Type Description
IBrokeredMessage

A copy of this object.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
MessageExtensions.GetContent(IMessage)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX