Hello i am working with an asp.net webapi program. i am trying to use simple injector.
i can init and register types in application start . but I have a question:
how to get container instance to resolve object?
Some classes are provided by 3rd party and cannot register. And if I cannot get container instance, then what's the meaning of
using (Scope scope = AsyncScopedLifestyle.BeginScope(container))
{
var service = container.GetInstance<IOrderShipmentProcessor>();
service.ProcessShipment();
}
as I cannot provide container parameters?