Msmq.NetCore
1.1.2
dotnet add package Msmq.NetCore --version 1.1.2
NuGet\Install-Package Msmq.NetCore -Version 1.1.2
<PackageReference Include="Msmq.NetCore" Version="1.1.2" />
<PackageVersion Include="Msmq.NetCore" Version="1.1.2" />
<PackageReference Include="Msmq.NetCore" />
paket add Msmq.NetCore --version 1.1.2
#r "nuget: Msmq.NetCore, 1.1.2"
#:package Msmq.NetCore@1.1.2
#addin nuget:?package=Msmq.NetCore&version=1.1.2
#tool nuget:?package=Msmq.NetCore&version=1.1.2
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.Messagingnamespace, 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 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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.3)
- System.Security.Permissions (>= 9.0.3)
-
net8.0
- System.DirectoryServices (>= 9.0.3)
- System.Security.Permissions (>= 9.0.3)
-
net9.0
- System.DirectoryServices (>= 9.0.3)
- System.Security.Permissions (>= 9.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Msmq.NetCore:
| Package | Downloads |
|---|---|
|
BlueGroup.TraceClsLib
Libreria per il logging centralizzato su file o tramite MSMQ per .NETFramework e .NETCore |
GitHub repositories
This package is not used by any popular GitHub repositories.
Updated dependencies