Hi Marcelo,
You are probably trying to use the interface as if the IoC container was pre-baked into Simple.Web. You actually need to install a NuGet package targeting your favorite IoC container or write your own wrapper to plug into Simple.Web. Using the Simple.Web.StructureMap package you would setup your IoC like so:
using Simple.Web.StructureMap
public class StructureMapStartupTask : StructureMapStartupBase
{
protected override Configure(ConfigurationExpression cfg)
{
cfg.For<IFoo>().Use<Foo>();
}
}
This class will automatically get picked up by Simple.Web (the base class implements IStartupTask) and your dependencies will be registered nicely. You can even have multiple "StructureMapStartupBase"s so you can segregate your configuration. Hope this helps.