static void Main(string[] args) { IocHelper.Register <ClassA, IClassA>(); //IocHelper.Register(new ClassB()); IocHelper.RegisterAssembly(Assembly.GetExecutingAssembly()); IClassA ca = IocHelper.Resolve <IClassA>(); ClassB cb = IocHelper.Resolve <ClassB>(); }
public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { IocHelper.Register(); RegisterDemoSection(applicationContext); }