This library is a thin C wrapper around RabbitMQ meant to provide simple functions that can be accessed via a C# DLLImport command in Unity. This is pretty barebones but has been used extensively for my various projects that require RabbitMQ on the Hololens. It goes without saying that this library requires the C RabbitMQ client library to compile. I usually compile the entire thing statically into this library as it avoids DLL import issues in Unity where you are having to link two DLLs instead of this single wrapper.
- Everything must be built in x86 32bit! Hololens doesn't support 64 bit so don't even try.
- Download and build RabbitMQ C Client for static linkage (https://github.com/alanxz/rabbitmq-c)
- Link this Visual Studio project to your RabbitMQ C Client STATICALLY, don't use dynamic (DLL) unless you really love debugging weird DLL import issues.
- Build this project and get an output DLL.
- Import this DLL into the Unity project within a folder named Plugins
- Import the C# scripts in the UnitySource folder into your Unity project.
- The RabbitClient is the main interface that is used within your project.
- Everything needs to be 32 bits!
- RabbitClient is multithreaded and has a built in message pump, so only instantiate one of this class.
- Please contribute to this as I built this in desperation but got it to work so I figured I would share in the hopes of making it better.
Good luck and reach out for help.