Hi, I have tested robotlegs for unity for a while now, but seems to be responsible for crashes in the IDE.
So I thought I'd give StrangeIOC a chance. But in the following scenario, I have a problem with the syntax:
I have a view class, that implements an interface:
public class MyView: EventView, IDoSomething {}
With robotlegs I can now easily attach multiple mediators to my view, simply by implementing the interfaces:
mediatorMap. map<IDoSomething> (). ToMediator<DoSomethingMediator> ();
mediatorMap. map<MyView> (). ToMediator<MyMediator> ();
i like the benefit of implementing interfaces in my view classes, that automatically will be mediated .
i have tried the same with strangeioc, but the mediator for IDoSomething is not attached to the view:
mediationBinder. Bind<IDoSomething> (). To<DoSomethingMediator> ();
mediationBinder. Bind<MyView> (). To<MyMediator> ()
is this the wrong syntax to bind a mediator to an interface?
or is it not possible to attach a mediator to a view via interface?
greets
micha