public void Detect(IRegister register) { Detect((x) => { register.RegisterType(typeof(IFunctionPlugin), x); }); }