Tago.Extensions.MqConnector
2.2.5
dotnet add package Tago.Extensions.MqConnector --version 2.2.5
NuGet\Install-Package Tago.Extensions.MqConnector -Version 2.2.5
<PackageReference Include="Tago.Extensions.MqConnector" Version="2.2.5" />
paket add Tago.Extensions.MqConnector --version 2.2.5
#r "nuget: Tago.Extensions.MqConnector, 2.2.5"
// Install Tago.Extensions.MqConnector as a Cake Addin #addin nuget:?package=Tago.Extensions.MqConnector&version=2.2.5 // Install Tago.Extensions.MqConnector as a Cake Tool #tool nuget:?package=Tago.Extensions.MqConnector&version=2.2.5
Tago.Extensions.MqConnector Documentation
Table of Contents
Introduction
"Tago.Extensions.MqConnector" is a wrapper for IBM MQ, designed to simplify and streamline the interaction with IBM MQ messaging systems within your .NET applications.
Target Audience
The primary audience for this documentation and the utility includes .NET developers and system administrators.
Getting Started
Installation
To use "Tago.Extensions.MqConnector" in your .NET project, you can install it via NuGet Package Manager or the .NET CLI.
dotnet add package Tago.Extensions.MqConnector
Quick Start
To quickly get started with "Tago.Extensions.MqConnector," follow these steps:
- Import the necessary namespaces.
- Create an instance of the MqConnector class.
- Configure the connection to your IBM MQ server.
- Send and receive messages.
Configuration
You can customize the behavior of the IBM MQ Connector Wrapper by configuring the following options...
appsetting.json
{
"Queues": {
"Readers": {
"Queue1": {
"CodePage": 65001,
"Enabled": true,
"ExtendedProperties": {
"ReplyToQueueKey": "Queue1"
},
"Description": "Test",
"CharacterSetLookup": {
"1208": 65001
}
"ConnectionStrings": [
"server=127.0.0.1.158:1414,channel=DEV.APP.SVRCONN,manager=QM1,queue=DEV.QUEUE.1"
],
"Security": {
"UserId": "app",
"Pwd": "passw0rd"
}
},
"Queue2": {
"CodePage": 65001,
"Enabled": true,
"Description": "Test",
"CharacterSetLookup": {
"1208": 65001
},
"ConnectionStrings": [
"server=127.0.0.1.158:1414,channel=DEV.APP.SVRCONN,manager=QM1,queue=DEV.QUEUE.2"
],
"Security": {
"UserId": "app",
"Pwd": "passw0rd"
}
}
},
"Writers": {
"MyWriter": {
"CodePage": 65001,
"Enabled": true,
"Description": "Test",
"ExtendedProperties": {
"TestProp": "Queue1"
}
"ConnectionStrings": [
"server=127.0.0.1:1414,channel=DEV.APP.SVRCONN,manager=QM1,queue=DEV.QUEUE.1"
],
"Security": {
"UserId": "app",
"Pwd": "passw0rd"
}
},
"3rdParty": {
"CodePage": 65001,
"Enabled": true,
"Description": "Test",
"ExtendedProperties": {
"TestProp": "Queue1"
},
"ConnectionStrings": [
"server=127.0.0.1.158:1414,channel=DEV.APP.SVRCONN,manager=QM1,queue=DEV.QUEUE.2"
],
"Security": {
"UserId": "app",
"Pwd": "passw0rd"
}
}
}
}
}
Usage
Dependency injection
MqQueuesSettings queuesSettings = new MqQueuesSettings();
configuration.GetSection("Queues").Bind(queuesSettings);
services.AddMqServices();
services.AddMqReaders(queuesSettings?.Readers);
services.AddMqWriters(queuesSettings?.Writers);
Sending a Message
var factory = serviceProvider.GetService<IMessageQueueFactory>();
var writer = factory.GetWriter("3rdParty");
MQMessage msg = new MQMessage();
.....
var res = await writer.SendAsync(msg);
Receiving a Message
var factory = serviceProvider.GetService<IMessageQueueFactory>();
var reader = factory.GetReader("Queue1");
var res = await reader.ReceiveAsync();
Conclusion
Thank you for exploring the documentation for Tago.Extensions.MqConnector. We hope this guide has provided you with the information and resources needed to effectively integrate and utilize our IBM MQ Connector Wrapper in your .NET projects.
As you embark on your journey with Tago.Extensions.MqConnector, please remember that our commitment to enhancing and supporting this utility remains steadfast. Your feedback, contributions, and insights are invaluable to us as we strive to make this tool even more powerful and user-friendly.
Should you encounter any challenges, have questions, or wish to contribute to the project's development, we encourage you to reach out to us. Your engagement is key to the continued success of Tago.Extensions.MqConnector.
We look forward to seeing the remarkable applications and solutions you create with the help of our IBM MQ Connector Wrapper. Happy coding!
Author Information
- Author: Golan Sheetrit
- Email: support@tago-solutions.com
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- IBMMQDotnetClient (>= 9.2.3)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Logging (>= 2.2.0)
- Microsoft.Extensions.Options (>= 2.2.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 2.2.0)
-
net6.0
- IBMMQDotnetClient (>= 9.2.3)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Options (>= 6.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.