示例#1
0
        /// <summary>
        /// Initializes a new instance of the BillOfMaterialsManagerService
        /// </summary>
        /// <param name="principal"></param>
        /// <param name="bomRepository"></param>
        /// <param name="configuration"></param>
        /// <param name="hostingEnvironment"></param>
        /// <param name="fileRepository"></param>

        public BillOfMaterialsManagerService(IPrincipal principal, IBillOfMaterialRepository bomRepository, IConfiguration configuration, IHostingEnvironment hostingEnvironment, IFileRepository fileRepository, IGraphRepository graphRepository, IRequestRepository requestRepository, IMaterialManagerService materialManager, IEquipmentManagerService equipmentManager)
        {
            _principal          = principal as ClaimsPrincipal;
            _bomRepository      = bomRepository;
            _configuration      = configuration;
            _hostingEnvironment = hostingEnvironment;
            _fileRepository     = fileRepository;
            _graphRepository    = graphRepository;
            _requestRepository  = requestRepository;
            _materialManager    = materialManager;
            _equipmentManager   = equipmentManager;
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the EquipmentController
 /// </summary>
 /// <param name="equipmentManager">Equipment manager.</param>
 /// <param name="configuration">Configuration.</param>
 /// <param name="hostingEnvironment">Hosting environment.</param>
 public EquipmentController(IEquipmentManagerService equipmentManager, IConfiguration configuration, IHostingEnvironment hostingEnvironment)
 {
     _equipmentManager   = equipmentManager;
     _configuration      = configuration;
     _hostingEnvironment = hostingEnvironment;
 }
 /// <summary>
 /// Stat controller
 /// </summary>
 /// <param name="billOfMaterialsManagerService"></param>
 /// <param name="equipmentManagerService"></param>
 public StatisticsController(IBillOfMaterialsManagerService billOfMaterialsManagerService, IEquipmentManagerService equipmentManagerService, IMaterialManagerService materialManagerService)
 {
     _billOfMaterialsManagerService = billOfMaterialsManagerService;
     _equipmentManagerService       = equipmentManagerService;
     _materialManagerService        = materialManagerService;
 }