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

Dispatcher.AddService: allow clients to register interfaces #23

Open
bits01 opened this issue Aug 15, 2016 · 0 comments
Open

Dispatcher.AddService: allow clients to register interfaces #23

bits01 opened this issue Aug 15, 2016 · 0 comments

Comments

@bits01
Copy link

bits01 commented Aug 15, 2016

Currently Dispatcher.AddService requires a *struct to be registered. For clients that is not convenient, the options are to register the actual struct used on the server side, but that will pull in more code than necessary into the client or create a dummy struct on the client side with dummy methods that match the server side struct.
It would be nice to just have a common interface that can be shared by both the server and the client side. The server would have to register a concrete impl of that interface of course, but that struct would be known to the server only, while the client could register just the interface so that it can make calls.

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

1 participant