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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tago.Extensions.MqConnector" Version="2.2.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Tago.Extensions.MqConnector --version 2.2.5                
#r "nuget: Tago.Extensions.MqConnector, 2.2.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

  1. Introduction
  2. Getting Started
  3. Usage
  4. Author Information

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.5 86 12/18/2024
2.2.4 143 8/22/2024