public override void PrepareBasic()
        {
            this.container = new MugenInjector();

            this.RegisterDummies();
            this.RegisterStandard();
            this.RegisterComplex();
        }
        public override void Prepare()
        {
            this.container = new MugenInjector();

            this.container.Bind<ISingleton>().To<Singleton>().InSingletonScope();
            this.container.Bind<ITransient>().To<Transient>().InTransientScope();
            this.container.Bind<ICombined>().To<Combined>().InTransientScope();
        }
        public void Prepare()
        {
            this.container = new MugenInjector();

            this.container.Bind <ISingleton>().To <Singleton>().InSingletonScope();
            this.container.Bind <ITransient>().To <Transient>().InTransientScope();
            this.container.Bind <ICombined>().To <Combined>().InTransientScope();
        }
Example #4
0
        public override void Prepare()
        {
            this.container = new MugenInjector();

            this.RegisterDummies();
            this.RegisterStandard();
            this.RegisterComplex();
            this.RegisterMultiple();
            this.RegisterOpenGeneric();
            this.RegisterConditional();
            this.RegisterInterceptor();
        }
        public override void Prepare()
        {
            this.container = new MugenInjector();

            this.RegisterDummies();
            this.RegisterStandard();
            this.RegisterComplex();
            this.RegisterMultiple();
            this.RegisterOpenGeneric();
            this.RegisterConditional();
            this.RegisterInterceptor();
        }
Example #6
0
 public MugenServiceLocator(MugenInjector kernel)
 {
     _kernel = kernel;
 }
 public override void Dispose()
 {
     // Allow the container and everything it references to be disposed.
     this.container = null;
 }
         public override void PrepareBasic()
        {
            this.container = new MugenInjector();

            this.RegisterDummies();
            this.RegisterStandard();
            this.RegisterComplex();
        }
Example #9
0
 public override void Dispose()
 {
     // Allow the container and everything it references to be disposed.
     this.container = null;
 }