Skip to content

Instantly share code, notes, and snippets.

Last active Jan 31, 2019
What would you like to do?
public class Initializer
public static void Process(PipelineArgs args)
container = new Container();
container.Options.DefaultScopedLifestyle = new WebRequestLifestyle();
container.Register(typeof(ISitecoreContext), () => new SitecoreContext(), Lifestyle.Scoped);
new ChainedDependencyResolver(
new SimpleInjectorDependencyResolver(container),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment