Show / Hide Table of Contents

    Class BinaryFileMessage

    Represents a binary file that is being transferred over the message broker.

    Inheritance
    object
    BinaryFileMessage
    Implements
    IBinaryFileMessage
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Messages
    Assembly: Silverback.Integration.dll
    Syntax
    public class BinaryFileMessage : IBinaryFileMessage

    Constructors

    | Improve this doc View source

    BinaryFileMessage()

    Initializes a new instance of the BinaryFileMessage class.

    Declaration
    public BinaryFileMessage()
    | Improve this doc View source

    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
    byte[] content

    The binary content.

    string contentType

    The optional MIME type.

    | Improve this doc View source

    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
    Stream content

    The binary content.

    string contentType

    The optional MIME type.

    Properties

    | Improve this doc View source

    Content

    Gets or sets the binary content.

    Declaration
    public Stream? Content { get; set; }
    Property Value
    Type Description
    Stream
    | Improve this doc View source

    ContentType

    Gets or sets the MIME type of the file.

    Declaration
    [Header("content-type")]
    public string ContentType { get; set; }
    Property Value
    Type Description
    string

    Implements

    IBinaryFileMessage
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini