public (object bean, InjectionState injectionState) Execute(InjectionState injectionState , BeanFactoryArgs args) { int x = ((string)null).Length; return("", injectionState); }
Execute(InjectionState injectionState, BeanFactoryArgs args) { object[] @params = (object[])args.FactoryParmeter; //Assert(@params.Length == 2); //Assert(@params[0] is Type); //Assert(@params[1] is String); return(GetResourceAsString(@params[0] as Type, @params[1] as String), injectionState); }
Execute(InjectionState injectionState, BeanFactoryArgs args) { throw new Exception("test exception"); }
public (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args) { return(injector.CreateAndInjectDependencies <SimpleChild>(injectionState)); }
Execute(InjectionState injectionState, BeanFactoryArgs args) { return(42, injectionState); }
public (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args) { if (System.Diagnostics.Debugger.IsAttached) { return(iocContainer.CreateAndInjectDependencies <VSOutputWindow>(injectionState , rootBeanSpec: new RootBeanSpec(rootBeanName: "outputWindow"))); } else { return(iocContainer.CreateAndInjectDependencies <ConsoleDisplay>(injectionState)); } }
public override (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args) => (24, injectionState);
public (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args) { return(new ValueObject((string)args.FactoryParmeter), injectionState); }
Execute(InjectionState injectionState, BeanFactoryArgs args) { return (numberProvider.number, injectionState); }
public (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args) { object[] @params = (object[])args.FactoryParmeter; Assert(@params.Length == 2); Assert(@params[0] is Type); Assert(@params[1] is String); return(ConvertResourceToXPathNavigator(@params[0] as Type, @params[1] as String), injectionState); }
Execute(InjectionState injectionState, BeanFactoryArgs args) { return(injector.CreateAndInjectDependencies <MemberBean>(injectionState)); }
public (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args) { var pdi = new DependencyInjector(); if (args.FactoryParmeter as Type == typeof(DiverseA)) { return(pdi.CreateAndInjectDependencies <DiverseA>(injectionState)); } else if (args.FactoryParmeter as Type == typeof(DiverseB)) { return(pdi.CreateAndInjectDependencies(args.FactoryParmeter as Type, injectionState)); } else if (args.FactoryParmeter as Type == typeof(DiverseC)) { return(pdi.CreateAndInjectDependencies((args.FactoryParmeter as Type).FullName, injectionState)); } else { var diverseD = new DiverseD(); return(pdi.CreateAndInjectDependencies(diverseD, injectionState)); } }
public (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args) { return(Environment.GetCommandLineArgs().Skip(1).FirstOrDefault(), injectionState); }
Execute(InjectionState injectionState, BeanFactoryArgs args) { return(new MyGeneric <int>(), injectionState); }
Execute(InjectionState injectionState, BeanFactoryArgs args) { throw new System.NotImplementedException(); }
Execute(InjectionState injectionState, BeanFactoryArgs args) { return(args.FactoryParmeter, injectionState); }
Execute(InjectionState injectionState, BeanFactoryArgs args) { return(new Level2H(), injectionState); }
Execute(InjectionState injectionState, BeanFactoryArgs args) { return(new Repository(Environment.GetEnvironmentVariable("CONNECTION_STRING")) , injectionState); }
public (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args) { if (System.Environment.GetCommandLineArgs().Length > 1) { return(iocContainer.CreateAndInjectDependencies <FileListProvider>(injectionState)); } else { return(iocContainer.CreateAndInjectDependencies <UsageListProvider>(injectionState, rootBeanSpec: new RootBeanSpec(rootBeanName: "usage"))); } }
public abstract (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args);
Execute(InjectionState injectionState, BeanFactoryArgs args) { accumulator++; return(accumulator, injectionState); }
public (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args) { return(43, injectionState); }
public (object bean, InjectionState injectionState) Execute(InjectionState injectionState, BeanFactoryArgs args) { switch ((int)args.FactoryParmeter) { case 1: return(pDependencyInjector.CreateAndInjectDependencies <ChildOne>(injectionState)); case 2: return(pDependencyInjector.CreateAndInjectDependencies <ChildTwo>(injectionState)); default: throw new Exception("Execute failed"); } }