edit: I figured it out.
You have to get the underlying light inject container in your startup composer, and use that to register a constructor dependency
public void Compose(Composition composition)
{
#region Injection Registration
var container = composition.Concrete as LightInject.ServiceContainer; //Advanced access to the injector https://www.zpqrtbnk.net/posts/composing-umbraco-v8/
container.RegisterConstructorDependency<IGeocoder>((factory, parameterInfo) => new GoogleGeocoder { ApiKey = "APIKEY" }); //https://www.lightinject.net/ #Implicit service registration
...
}
Light Inject with Parameters
Simple question.
I need to inject a parameter in with light inject. I want to do something like this. I can't figure out how to do this.
edit: I figured it out. You have to get the underlying light inject container in your startup composer, and use that to register a constructor dependency
is working on a reply...