/// <summary> /// GS1 Utility class /// </summary> public Gs1Util() { this.m_actRepository = ApplicationContext.Current.GetService <IActRepositoryService>(); this.m_materialRepository = ApplicationContext.Current.GetService <IMaterialRepositoryService>(); this.m_placeRepository = ApplicationContext.Current.GetService <IPlaceRepositoryService>(); this.m_stockService = ApplicationContext.Current.GetService <IStockManagementRepositoryService>(); }
/// <summary> /// GS1 Utility class /// </summary> public Gs1Util() { this.m_actRepository = ApplicationServiceContext.Current.GetService <IRepositoryService <Act> >(); this.m_materialRepository = ApplicationServiceContext.Current.GetService <IRepositoryService <Material> >(); this.m_manufMaterialRepository = ApplicationServiceContext.Current.GetService <IRepositoryService <ManufacturedMaterial> >(); this.m_placeRepository = ApplicationServiceContext.Current.GetService <IRepositoryService <Place> >(); this.m_stockService = ApplicationServiceContext.Current.GetService <IStockManagementRepositoryService>(); }
/// <summary> /// Default ctor setting services /// </summary> public StockServiceBehavior(ILocalizationService localizationService) { this.m_actRepository = ApplicationServiceContext.Current.GetService <IRepositoryService <Act> >(); this.m_materialRepository = ApplicationServiceContext.Current.GetService <IRepositoryService <Material> >(); this.m_placeRepository = ApplicationServiceContext.Current.GetService <IRepositoryService <Place> >(); this.m_stockService = ApplicationServiceContext.Current.GetService <IStockManagementRepositoryService>(); this.m_manufMaterialRepository = ApplicationServiceContext.Current.GetService <IRepositoryService <ManufacturedMaterial> >(); this.m_gs1Util = new Gs1Util(); this.m_localizationService = localizationService; }