Skip to content

Instantly share code, notes, and snippets.

Created March 22, 2013 21:58
public class CustomKernel : StandardKernel
{
protected override void AddComponents()
{
base.AddComponents();
Components.RemoveAll<IActivationStrategy>();
Components.Add<IActivationStrategy, ActivationCacheStrategy>();
Components.Add<IActivationStrategy, BindingActionStrategy>();
Components.Add<IActivationStrategy, CommunicationObjectAwareDisposableStrategy>();
Components.RemoveAll<IPlanningStrategy>();
Components.Add<IPlanningStrategy, ConstructorReflectionStrategy>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment