Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile to UWP #2

Open
fuadmefleh opened this issue Apr 27, 2017 · 5 comments
Open

Compile to UWP #2

fuadmefleh opened this issue Apr 27, 2017 · 5 comments

Comments

@fuadmefleh
Copy link

fuadmefleh commented Apr 27, 2017

Is it possible to get this to run in a UWP app? You mention there is more work, what needs to be done? I can and am willing to write the code if you have an idea of what should be done.

@meverett
Copy link
Collaborator

meverett commented Apr 27, 2017

I think the short answer is that it will be a lot of work, and ultimately I'm not 100% sure it will be issue free. I don't think there is official support for the .NET RabbitqMQ client for UWP. It sounds like there is an experimental RabbitMQ.Client.WinRT.dll that might support UWP. There are issues with how non-UWP and UWP apps reference .NET networking code (they reference different socket implementations) and the official RabbitMQ .NET client does not implement both versions.

The good news is that all of the AMQP/RabbitMQ API in this project is abstracted by .NET interfaces so theoretically someone could add an implementation around the experimental WinRT client DLL. There is a client factory pattern in place, but currently it's hardcoded to use the 3.4.4/.NET 3.5 version for compatibility with Unity/Mono, so that would have to be modified slightly to be injectable so it could pick an alternative UWP implementation and deliver its client instance when creating from the client factory. The scaffolding is there at least.

@igsanchez
Copy link

Hi, I'm interested in this subject. Do you have any news?

@fuadmefleh
Copy link
Author

@igsanchez So I ended up wrapping the RabbitMQ C library with a C# layer and loading that into Unity. Works like a champ and was simple to do. I can post my code in a repo if you would like.

@nefl1011
Copy link

nefl1011 commented Jan 1, 2018

@foomanchu1234 I'm also interested in this issue. It would be nice and help me a lot if you could share your code.

@fuadmefleh
Copy link
Author

fuadmefleh commented Jan 8, 2018

@nefl1011 @igsanchez

Sorry for the long delay. I had to get approval from boss and strip out all IP before releasing this.

Here is my thin C wrapper for RabbitMQ. Its purpose is to provide a simple interface I can import into Unity. Included in this repo is C# source you can use in Unity.

https://github.com/foomanchu1234/holorabbit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants