FRENDS community task for Azure Queue Storage operations
You can install the task via FRENDS UI Task View or you can find the nuget package from the following nuget feed 'Insert nuget feed here'
Creates a new Queue in QueueStorage.
Property | Type | Description | Example |
---|---|---|---|
Storage Connection String | string | Queue Storage Connection string. See Configure Azure Storage connection strings | UseDevelopmentStorage=true; |
Queue Name | string | Name of the created Queue. See Naming Queues and Metada for naming conventions. | 'my-new-queue' |
Throw Error On Failure | bool | If true exception is thrown in case of failure, otherwise returns Object { Success = false} | true |
Property | Type | Description | Example |
---|---|---|---|
Success | boolean | Task execution result. | true |
Info | string | Task result message. If Throw Exception on failure is false, contains error message. | 'Queue 'my-queue' created.' |
Deletes a queue in QueueStorage.
Property | Type | Description | Example |
---|---|---|---|
Storage Connection String | string | Queue Storage Connection string. See Configure Azure Storage connection strings | UseDevelopmentStorage=true; |
Queue Name | string | Name of the Queue you wish to delete. | 'delete-this-queue' |
Throw Error On Failure | bool | If true exception is thrown in case of failure, otherwise returns Object { Success = false} | true |
Property | Type | Description | Example |
---|---|---|---|
Success | boolean | Task execution result. | true |
Info | string | Task result message. If Throw Exception on failure is false, contains error message. | 'Queue 'my-queue' deleted.' |
Gets an estimate number of messages in a queue.
Property | Type | Description | Example |
---|---|---|---|
Storage Connection String | string | Queue Storage Connection string. See Configure Azure Storage connection strings | UseDevelopmentStorage=true; |
Queue Name | string | Name of the Queue which message count is calculated. | 'count-this-queue' |
Throw Error On Failure | bool | If true exception is thrown in case of failure, otherwise returns Object { Success = false} | true |
Property | Type | Description | Example |
---|---|---|---|
Success | boolean | Task execution result. | true |
Info | string | Task result message. If Throw Exception on failure is false, contains error message. | |
Count | int | The estimated number of messages in queue. | 4 |
Inserts a new message to queue.
Property | Type | Description | Example |
---|---|---|---|
Storage Connection String | string | Queue Storage Connection string. See Configure Azure Storage connection strings | UseDevelopmentStorage=true; |
Queue Name | string | Name of the Queue where message is added. | 'add-message-queue' |
Content | string | Message content. | 'Hello QueueStorage!' |
Create Queue | bool | Indicates if Queue should be created in case it does not exist. | true |
Throw Error On Failure | bool | If true exception is thrown in case of failure, otherwise returns Object { Success = false} | true |
Property | Type | Description | Example |
---|---|---|---|
Success | boolean | Task execution result. | true |
Info | string | Task result message. If Throw Exception on failure is false, contains error message. | 'Message added to queue 'my-queue'.' |
Removes next message from queue.
Property | Type | Description | Example |
---|---|---|---|
Storage Connection String | string | Queue Storage Connection string. See Configure Azure Storage connection strings | UseDevelopmentStorage=true; |
Queue Name | string | Name of the Queue from where message is deleted. | 'remove-message-queue' |
Throw Error On Failure | bool | If true exception is thrown in case of failure, otherwise returns Object { Success = false} | true |
Property | Type | Description | Example |
---|---|---|---|
Success | boolean | Task execution result. | true |
Info | string | Task result message. If Throw Exception on failure is false, contains error message. | 'Deleted next message in queue 'my-queue'.' |
Peeks at the message in front of the queue and returns its content.
Property | Type | Description | Example |
---|---|---|---|
Storage Connection String | string | Queue Storage Connection string. See Configure Azure Storage connection strings | UseDevelopmentStorage=true; |
Queue Name | string | Name of the Queue from where message is peeked. | 'peek-message-queue' |
Throw Error On Failure | bool | If true exception is thrown in case of failure, otherwise returns Object { Success = false} | true |
Property | Type | Description | Example |
---|---|---|---|
Success | boolean | Task execution result. | true |
Info | string | If Task fails, contains error information | |
Content | string | Content of the message in front of the queue | 'some content.' |
Clone a copy of the repo
git clone https://github.com/CommunityHiQ/Frends.Community.Azure.QueueStorage.git
Restore dependencies
nuget restore Frends.Community.Azure.QueueStorage
Rebuild the project
Run Tests with nunit3. Tests can be found under
Frends.Community.Azure.QueueStorage.Tests\bin\Release\Frends.Community.Azure.QueueStorage.Tests.dll
Create a nuget package
nuget pack nuspec/Frends.Community.Azure.QueueStorage.nuspec
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!
Version | Changes |
---|---|
1.0.0 | Initial version of Azure QueueStorage tasks |
1.3.0 | Dependency version fixes |