I'm not sure why your OnActivated
isn't happening, but you could do this instead:
builder.Register(c => new MyThing(c.Resolve<MyOtherThingDependancy>()))
.As<IMyThing>()
.SingleInstance()
builder.RegisterType<MyOtherThing>().AutoActivate();
I think using AutoActivate
has clearer intent then your style.