Example #1
0
        public static OnBinder Install(params Type[] types)
        {
            var asm             = Assembly.GetCallingAssembly();
            var installerBinder = new InstallerBinder();

            new Zenjector(asm, installerBinder);
            return(installerBinder.Install(types));
        }
Example #2
0
        public static OnBinder Install <T>() where T : InstallerBase
        {
            var asm             = Assembly.GetCallingAssembly();
            var installerBinder = new InstallerBinder();

            new Zenjector(asm, installerBinder);
            return(installerBinder.Install(typeof(T)));
        }