We are using Windsor for DI in our project. While in v7 it was working properly, now cannot inject Umbraco dependencies when appliaction starts. Here are sample codes:
[RuntimeLevel(MinLevel = RuntimeLevel.Run)]
public class ApplicationComposer : IUserComposer
{
public void Compose(Composition composition)
{
using (Container.Current.BeginScope())
{
try
{
Container.Current.CastleContainer.Install(new WebClientInstaller()
}
finally
{
Container.Current.Release(log);
}
}
}
}
We want to be able to inject some of umbraco dependencies, but Current.Services (along with many others) seems to be unavailable during composition
Composing application can't inject Umbraco dependencies
We are using Windsor for DI in our project. While in v7 it was working properly, now cannot inject Umbraco dependencies when appliaction starts. Here are sample codes:
We want to be able to inject some of umbraco dependencies, but Current.Services (along with many others) seems to be unavailable during composition
How can we overcome this?
is working on a reply...