frends-community - Frends.Community.ActiveMQ 1.0.0
Frends Community Tasks for ActiveMQ
PM> Install-Package Frends.Community.ActiveMQ -Version 1.0.0 -Source https://www.myget.org/F/frends-community/api/v3/index.json
> nuget.exe install Frends.Community.ActiveMQ -Version 1.0.0 -Source https://www.myget.org/F/frends-community/api/v3/index.json
> dotnet add package Frends.Community.ActiveMQ --version 1.0.0 --source https://www.myget.org/F/frends-community/api/v3/index.json
source https://www.myget.org/F/frends-community/api/v3/index.json
nuget Frends.Community.ActiveMQ ~> 1.0.0
Copy to clipboard
> choco install Frends.Community.ActiveMQ --version 1.0.0 --source https://www.myget.org/F/frends-community/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "frends-community" -SourceLocation "https://www.myget.org/F/frends-community/api/v2"
Install-Module -Name "Frends.Community.ActiveMQ" -RequiredVersion "1.0.0" -Repository "frends-community"
Copy to clipboard
Browse the sources in this package using Visual Studio or WinDbg by configuring the following legacy symbol server URL: https://www.myget.org/F/frends-community/symbols/
Frends.Community.ActiveMQ
Frends Tasks for ActiveMQ.
Installing
You can install the Task via Frends UI Task View or you can find the NuGet package from the following NuGet feed https://www.myget.org/F/frends-community/api/v3/index.json and in Gallery view in MyGet https://www.myget.org/feed/frends-community/package/nuget/Frends.Community.ActiveMQ
Tasks
Consume
Task Parameters
Input
| Property | Type | Description | Example |
|---|---|---|---|
| ConnectionString | secret | Connection string to ActiveMQ. | activemq:tcp://admin:admin@localhost:61616 |
| Queue | string | Queue from which messages will be consumed | testqueue |
Options
| Property | Type | Description | Example |
|---|---|---|---|
| MessageReceiveTimeout | int | Specifies the maximum duration, in seconds, to wait for receiving a message from the queue. | 10 |
| MaxMessagesToConsume | int | Maximum number of messages to receive. A value of 0 means no limit. | 5 |
| ThrowErrorIfEmpty | bool | Should the task throw an error if no messages are consumed? | true |
| TaskExecutionTimeout | int | Specifies the maximum time, in milliseconds, to wait for the task to complete before considering it timed out. | 5000 |
| Acknowledge | AcknowledgeBehavior | Determines how the task acknowledges consumed messages. Options are Immediate (acknowledge as messages are consumed) or OnSuccess (acknowledge only after the task completes successfully). | Immediate |
Result
| Property | Type | Description | Example | | ---------|--------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|
| Messages | Message[] { string Type, dynamic Content } | Messages consumed from the queue. Content's type depends on message type, e.g. for text messages it is string and for byte messages it is byte[]. | [ { Type = "Text", Content = "my message" }, { Type = "Bytes", Content = [ 1, 2, 3, 4, 5 ] } ] |
Produce
Task Parameters
Input
| Property | Type | Description | Example |
|---|---|---|---|
| ConnectionString | secret | Connection string to ActiveMQ. | activemq:tcp://admin:admin@localhost:61616 |
| Queue | string | Queue to which the message will be sent. | myQueue |
| Message | string | Message which will be sent to the queue. | This is a test message. |
Result
| Property | Type | Description | Example |
|---|---|---|---|
| Success | bool | Indicates whether the message was sent successfully. | true |
Building
Clone a copy of the repo.
git clone https://github.com/CommunityHiQ/Frends.Community.ActiveMQ.git
Build the project.
dotnet build
Run Tests.
Test require test ActiveMQ, which you can start using Docker.
cd Frends.Community.ActiveMQ.Tests && docker-compose up -d
You can execute test with the following command.
dotnet test
Create a NuGet package.
dotnet pack --configuration Release
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
Change Log
| Version | Changes |
|---|---|
| 1.0.0 | Initial implementation of Consume-Task. |
| 1.0.1 | Consume: Added Apache.NMS version 2.0.0 as dependency. |
| 2.0.0 | Initial implementation of Produce-Task, Documentation fix for Consume-Task. |
| 3.0.0 | Consume: result's Messages property changed from array of strings to Message { string Type, dynamic Message }; added byte message support. |
| 3.1.0 | Consume: Added MaxMessagesToConsume parameter to Options |
| 3.2.0 | Consume: Added Timeout parameter for single message and added cancellation tokens to Task.Run and Task.Wait methods. |
| 4.0.0 | Consume: Added Options.TaskExecutionTimeout parameter and renamed Options.Timeout to Options.MessageReceiveTimeout. |
| 4.1.0 | Consume: Added Options.Acknowledge parameter to control when messages are acknowledged. Default Immediate behaves like previous versions (messages are acknowledged as they are consumed), while OnSuccess acknowledges only after the task completes successfully. |
-
.NETFramework 4.7.1
- Apache.NMS.ActiveMQ (>= 2.0.0)
- System.ComponentModel (>= 4.3.0)
- System.ComponentModel.Annotations (>= 4.7.0)
-
.NETStandard 2.0
- Apache.NMS.ActiveMQ (>= 2.0.0)
- System.ComponentModel (>= 4.3.0)
- System.ComponentModel.Annotations (>= 4.7.0)
- .NETFramework 4.7.1: 4.7.1.0
- .NETStandard 2.0: 2.0.0.0
| Assembly | Assembly hash | Match |
|---|---|---|
| /lib/netstandard2.0/frends.community.activemq.dll | d571c56266fc41409542f61d7ea27513FFFFFFFF | |
| /lib/net471/frends.community.activemq.dll | f3f791d548fe49afb0ad76aef32c9631FFFFFFFF |
OwnersFRENDS Community Feed User |
AuthorsHiQ Finland |
Project URLhttps://github.com/CommunityHiQ/Frends.Community.ActiveMQ |
LicenseUnknown |
TagsFrends |
Info173 total downloads |
| 7 downloads for version 1.0.0 |
| Download (12.02 KB) |
| Download legacy symbols (23.92 KB) |
| Found on the current feed only |
Package history
| Version | Size | Last updated | Downloads | Mirrored? | |||
|---|---|---|---|---|---|---|---|
|
|
4.1.0 | 17.96 KB | Wed, 03 Sep 2025 07:54:15 GMT | 9 |
|
||
|
|
4.0.0 | 17.04 KB | Wed, 06 Nov 2024 12:18:46 GMT | 78 |
|
||
|
|
3.2.0 | 16.55 KB | Mon, 15 Apr 2024 13:10:36 GMT | 24 |
|
||
|
|
3.1.0 | 16.28 KB | Mon, 11 Dec 2023 06:39:33 GMT | 20 |
|
||
|
|
3.0.0 | 15.74 KB | Mon, 17 Apr 2023 13:50:13 GMT | 21 |
|
||
|
|
2.0.0 | 14.38 KB | Wed, 14 Dec 2022 07:22:33 GMT | 11 |
|
||
|
|
1.0.1 | 12.02 KB | Tue, 13 Dec 2022 10:16:36 GMT | 3 |
|
||
|
|
1.0.0 | 12.02 KB | Thu, 01 Dec 2022 06:26:28 GMT | 7 |
|