Is there a better way to consume a service in mvvmcross by constructor injection? For example, I have my object in a plugin implementation
public class MyObject : IMyObject
{
public MyObject (int id)
{
_id = id;
}
}
and want to consume it somewhere the portable core (in the buisness layer) like this :
public void ConsumeTheService()
{
int i = 50;
var myObject = this.GetService<IMyObject>(i);
}
Actually, I only use a setter to get my id back in the implementation.