https://github.com/vborovikov/dodkin
Thin MSMQ wrapper library
https://github.com/vborovikov/dodkin
csharp dotnet message-queue messaging msmq msmq-wrapper
Last synced: 3 months ago
JSON representation
Thin MSMQ wrapper library
- Host: GitHub
- URL: https://github.com/vborovikov/dodkin
- Owner: vborovikov
- License: mit
- Created: 2023-01-09T14:45:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T21:26:14.000Z (about 1 year ago)
- Last Synced: 2024-05-20T23:12:43.384Z (about 1 year ago)
- Topics: csharp, dotnet, message-queue, messaging, msmq, msmq-wrapper
- Language: C#
- Homepage:
- Size: 223 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dodkin
Thin MSMQ wrapper library[](https://www.nuget.org/packages/Dodkin)
[](https://www.nuget.org/packages/Dodkin)
[](https://github.com/vborovikov/dodkin/blob/main/LICENSE)*This is a beta version not intended for use in production. The API is subject to change.*
## MSMQ Message Queue Library
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.## Features
- 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## Getting Started
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:```csharp
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);
```## Documentation
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.## Contributing
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.## License
This library is licensed under the MIT License. See the LICENSE file for details.