For the complete documentation index, see llms.txt. This page is also available as Markdown.

Publish

Publish message to RabbitMQ queue in UTF8 or byte array format.

Task version: 1.11.0

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

InputType : InputType

Data input type.

Possible values:

  • String: Data input type.

  • ByteArray: Data input type.

Default: - Example: String, Byte Array

DataByteArray : Byte[]

Data payload in byte array format.

Default: - Example: 54 65 73 74 20 6d 65 73 73 61 67 65

DataString : String

Data payload in string format.

Default: - Example: Test message

Headers : Header[]

List of headers to be added to the request.

Default: - Example: foo, bar

Task Result

Name
Description

Success : Boolean

Indicates if the task completed successfully. Example: true

DataFormat : String

Published data format. Example: String

DataString : String

Published data (message) in UTF8 string format. Example: Foo Bar

DataByteArray : Byte[]

Published data (message) in byte array format. Example: 46 6f 6f 20 42 61 72

Headers : Dictionary<String, String>

Headers of the published message. Example: foo, bar

Error : Error

Error that occurred during task execution. Example: object { string Message, Exception AdditionalInfo }

Task Changelog

Changelog for Task Frends.RabbitMQ.Publish.

[1.11.0] - 2026-04-26

Added

  • Added new property Connection.AllowInvalidCertificate to allow invalid certificates.

[1.10.0] - 2026-04-13

Added

  • Added Options class with ThrowErrorOnFailure and ErrorMessageOnFailure fields to control error handling behavior.

[1.9.0] - 2026-03-17

Fixed

  • Added missing Text attribute to the VirtualHost property in Connection parameters to make it automatically use the Text mode instead of Expression mode.

[1.8.0] - 2026-02-23

Added

  • Added CertificateWithCredentials authentication method that requires both a valid client certificate and username/password credentials to connect.

  • Added VirtualHost field to Connection parameters to allow specifying a RabbitMQ virtual host. Defaults to "/".

[1.7.0] - 2026-02-06

Added

  • New property: Result.Success.

  • New feature: Certificate‑based authentication via AuthenticationMethod.Certificate, with new enums (CertificateSource, SslProtocol, CertificateStoreLocation) and connection properties (ClientCertificatePath, ClientCertificatePassword, CertificateBase64, CertificateBytes, StoreThumbprint, CertificateStoreLocation, SslProtocol, CertificateSource).

Changed

  • Update RabbitMQ.Client from 7.0.0 to 7.2.0

  • Update System.Runtime.Caching from 9.0.2 to 10.0.2

[1.6.0] - 2025-11-30

Fixed

  • Fix the parallel connections issue.

  • Fix the issue with binding unnamed queue.

[1.5.0] - 2025-02-14

Changed

  • Update RabbitMQ.Client from 6.8.1 to 7.0.0

  • Update System.Runtime.Caching from 8.0.0 to 9.0.2

[1.4.0] - 2024-09-12

Fixed

  • Fixed issue with MemoryCache error Index was outside the bounds of the array by adding try - catch block and changing how cache key is formatted.

[1.3.0] - 2024-09-06

Fixed

  • Fixed issue with simultaneous calls by storing connections to Memory.Cache.

[1.2.0] - 2023-03-14

Fixed

  • Fixed issue with connections left open after task's execution by implementing IDisposable in Connectionhelper class.

Added

  • Added support for quorum queues.

  • [Breaking] Added parameter for connection options to enable creating quorum queues.

[1.1.0] - 2023-02-23

Fixed

  • Fixed NullReferenceException when no headers are defined for the input object.

[1.0.1] - 2022-10-12

Changed

  • Unnecessary input check removed.

[1.0.0] - 2022-08-18

Added

  • Initial implementation

Last updated

Was this helpful?