Msmq.NetCore
1.1.1
dotnet add package Msmq.NetCore --version 1.1.1
NuGet\Install-Package Msmq.NetCore -Version 1.1.1
<PackageReference Include="Msmq.NetCore" Version="1.1.1" />
paket add Msmq.NetCore --version 1.1.1
#r "nuget: Msmq.NetCore, 1.1.1"
// Install Msmq.NetCore as a Cake Addin #addin nuget:?package=Msmq.NetCore&version=1.1.1 // Install Msmq.NetCore as a Cake Tool #tool nuget:?package=Msmq.NetCore&version=1.1.1
Msmq.NetCore
Msmq.NetCore is a drop-in replacement for System.Messaging
on .NET Core, providing access to the features of MSMQ on the latest .NET Core runtime. This library is a fork of the original MSMQ.Messaging
project and has been updated to support .NET Standard 2.1.
Note: This project is intended for use with .NET Core only. For .NET Framework users, it is recommended to continue using
System.Messaging
.
Features
- MSMQ Support: Provides an interface for working with Microsoft Message Queuing (MSMQ) on .NET Core.
- Fork of MSMQ.Messaging: Built on the foundation of the original project, updated for modern .NET technologies.
- Simple Integration: Drop-in replacement for the legacy
System.Messaging
namespace, making it easy to migrate to .NET Core.
Usage
Basic Example
To start using Msmq.NetCore
, you can replace System.Messaging
with Msmq.NetCore
in your project. Here's an example of how to send and receive messages:
using Msmq.NetCore;
var queuePath = @".\Private$\MyQueue";
// Create the queue if it doesn't exist
if (!MessageQueue.Exists(queuePath))
{
MessageQueue.Create(queuePath);
}
// Sending a message
using (var queue = new MessageQueue(queuePath))
{
var message = new Message("Hello, MSMQ!");
queue.Send(message);
}
// Receiving a message
using (var queue = new MessageQueue(queuePath))
{
queue.Formatter = new XmlMessageFormatter(new string[] { "System.String" });
var receivedMessage = queue.Receive();
Console.WriteLine($"Received message: {receivedMessage.Body}");
}
Compatibility
- Target Framework: .NET Standard 2.1 (only for .NET Core).
- Platform: Windows (MSMQ is platform-specific).
Contributing
Contributions are welcome! If you'd like to contribute to Msmq.NetCore
, please fork the repository and submit a pull request.
We ask that you respect the project's goal of staying as close as possible to the reference implementation of MSMQ, with the aim of providing a simple migration path to .NET Core.
Acknowledgments
This project is a fork of MSMQ.Messaging, created by Bill Loytty. We would like to thank him for laying the groundwork for this project.
License
This project is licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | 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.1
- System.DirectoryServices (>= 9.0.0)
- System.Security.Permissions (>= 9.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.
Updated to .NET 9