Thin MSMQ wrapper library
This is a beta version not intended for use in production. The API is subject to change.
This is a C# library for working with Microsoft Message Queue (MSMQ) that provides classes for creating, reading, writing, and managing message queues and messages.
- Create and manage message queues
- Read messages from a message queue
- Write messages to a message queue
- Move messages to a message subqueue
- Navigate through a message queue using a cursor
- Manage transactions for a message queue
- Handle exceptions that may occur when working with a message queue
Once you have referenced the library from NuGet, you can start using its classes and interfaces in your code. Here is an example of how to create and use a message queue:
using Dodkin;
// Create a new message queue
var queueName = MessageQueueName.Parse(".\\private$\\myqueue");
MessageQueue.Create(queueName);
var queueFactory = new MessageQueueFactory();
// Create a new message
var messageBody = "Hello, world!"u8;
var message = new Message(messageBody);
// Write the message to the queue
var writer = queueFactory.CreateWriter(queueName);
writer.Write(message);
The library includes XML documentation comments for all classes and interfaces, which can be viewed in Visual Studio by hovering over a class or interface name or by pressing F12.
Contributions to this library are welcome! If you find a bug or would like to suggest a new feature, please open an issue on the GitHub repository. If you would like to contribute code, please fork the repository and submit a pull request with your changes.
This library is licensed under the MIT License. See the LICENSE file for details.