Class BinaryFileMessage
Inheritance
System.Object
BinaryFileMessage
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Silverback.Messaging.Messages
Assembly: Silverback.Integration.dll
Syntax
public class BinaryFileMessage : IBinaryFileMessage
Constructors
| Improve this doc View sourceBinaryFileMessage()
Initializes a new instance of the BinaryFileMessage class.
Declaration
public BinaryFileMessage()
BinaryFileMessage(Byte[], String)
Initializes a new instance of the BinaryFileMessage class with the specified content.
Declaration
public BinaryFileMessage(byte[] content, string contentType = "application/octet-stream")
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | content | The binary content. |
System.String | contentType | The optional MIME type. |
BinaryFileMessage(Stream, String)
Initializes a new instance of the BinaryFileMessage class with the specified content.
Declaration
public BinaryFileMessage(Stream content, string contentType = "application/octet-stream")
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | content | The binary content. |
System.String | contentType | The optional MIME type. |
Properties
| Improve this doc View sourceContent
Declaration
public Stream Content { get; set; }
Property Value
Type | Description |
---|---|
System.IO.Stream |
ContentType
Gets or sets the MIME type of the file.
Declaration
[Header("content-type")]
public string ContentType { get; set; }
Property Value
Type | Description |
---|---|
System.String |