public SlotManager() { //context = TypesContainer.GetContext(); repo = TypesContainer.GetRepository <Slot>(); vehicleSlotRepo = TypesContainer.GetRepository <VehicleSlot>(); context = vehicleSlotRepo.Context = repo.Context; }
public DependencyFillHelper(TypesContainer typesContainer, ResultFillHelper resultFillHelper, ConditionFillHelper conditionFillHelper) { _typesContainer = typesContainer; _resultFillHelper = resultFillHelper; _conditionFillHelper = conditionFillHelper; }
public static IPT GetPT(YUEnums.PTEnum type, params object[] args) { lock (thisLock) { if (notRegistered) { RegisterPT(); } } IPT instance = null; if (_mapServer.ContainsKey(type)) { instance = TypesContainer.CreateInstance <IPT>(_mapServer[type], args); } else { var argList = args.ToList(); argList.Add(type); instance = TypesContainer.CreateInstance <IPT>("YU.PT.ExtendPT,YU.PT", argList.ToArray()); } if (instance == null) { throw new Exception("instance==null"); } return(instance); }
private static ResourceManager LoadResourceAssembly(string language, string systemType) { ResourceManager manager; string type = systemType.ToString(); if (type.IndexOf(',') > -1) { manager = new ResourceManager(TypesContainer.GetOrRegister(type)); } else { manager = ResourceManager.CreateFileBasedResourceManager(type, ClientPath, null); } SubSystemTpe = systemType; return(manager); }
protected void InvokeMethod(IBillBenchPlugInEventArgs e, Action <IBillBenchPlugIn> action) { var formId = e.Rule.TargetFormId; if (!this.PlugIns.Any(p => p.Item1.EqualsIgnoreCase(formId)) && this.Registration.Any(reg => reg.Key.EqualsIgnoreCase(formId))) { var className = this.Registration[formId]; this.RegisterPlugIn(new Tuple <string, IBillBenchPlugIn>(formId, TypesContainer.CreateInstance <IBillBenchPlugIn>(className))); }//end if var billView = this.View.AsType <IBillView>(); foreach (var plugin in this.PlugIns) { plugin.Item2.SetContext(billView); if (action != null) { action.Invoke(plugin.Item2); } } }
public static IPT GetPT(YUEnums.PTEnum type, params object[] args) { lock (thisLock) { if (notRegistered) { RegisterPT(); } } IPT instance = null; if (_mapServer.ContainsKey(type)) { instance = TypesContainer.CreateInstance <IPT>(_mapServer[type], args); } if (instance == null) { throw new Exception("instance==null"); } return(instance); }
public CutPasteTests() { _typesContainer = new TypesContainer(Program.GetApp().Container.Resolve(typeof(IUnityContainer)) as IUnityContainer); }
public PropertyDependencyTests() { _typesContainer = new TypesContainer(Program.GetApp().Container.Resolve(typeof(IUnityContainer)) as IUnityContainer); }
public UserManager() { context = TypesContainer.GetContext(); userRepo = TypesContainer.GetRepository <User>(); }
public EditorValidatorTests() { _typesContainer = new TypesContainer(Program.GetApp().Container.Resolve(typeof(IUnityContainer)) as IUnityContainer); }
public BillBenchPlugInProxy() { this.Registration = TypesContainer.GetOrRegisterSingletonInstance("PHMX.PI.WMS.Core.Connector.PlugIn.BillBenchPlugInRegistration,PHMX.PI.WMS.Core").AsType <BillBenchPlugInRegistration>(); }
public AddDependencyToManyPropsTests() { _typesContainer = new TypesContainer(Program.GetApp().Container.Resolve(typeof(IUnityContainer)) as IUnityContainer); }
public VehicleManager() { context = TypesContainer.GetContext(); repo = TypesContainer.GetRepository <Vehicle>(); }
public DeviceEditingTests() { _typesContainer = new TypesContainer(Program.GetApp().Container.Resolve(typeof(IUnityContainer)) as IUnityContainer); }