Class StreamMessage
Represents message which content is represented by Stream.
Inherited Members
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public class StreamMessage : StreamTransferObject, IDisposableMessage, IMessage, IDataTransferObject, IDisposable, IAsyncDisposable
Constructors
| Edit this page View SourceStreamMessage(Stream, bool, string, ContentType?)
Represents message which content is represented by Stream.
Declaration
public StreamMessage(Stream content, bool leaveOpen, string name, ContentType? type = null)
Parameters
Type | Name | Description |
---|---|---|
Stream | content | The message content. |
bool | leaveOpen | true to leave the stream open after StreamMessage object is disposed; otherwise, false. |
string | name | The name of the message. |
ContentType | type | Media type of the message. |
Properties
| Edit this page View SourceName
Gets name of this message.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Type
Gets media type of this message.
Declaration
public ContentType Type { get; }
Property Value
Type | Description |
---|---|
ContentType |