public OpcUaImporter( IDal <ProfileTypeDefinition, ProfileTypeDefinitionModel> dal, IDal <LookupDataType, LookupDataTypeModel> dtDal, IDal <Profile, ProfileModel> nsDal, IDal <NodeSetFile, NodeSetFileModel> nsFileDal, IDal <EngineeringUnit, EngineeringUnitModel> euDal, ProfileMapperUtil profileUtils, ILogger <OpcUaImporter> logger #if NODESETDBTEST , NodeSetModelContext nsDBContext #endif ) { _dal = dal; _dtDal = dtDal; _euDal = euDal; this.Logger = new LoggerCapture(logger); #if NODESETDBTEST this.nsDBContext = nsDBContext; #endif _nsDal = nsDal; _nsFileDal = nsFileDal; _profileUtils = profileUtils; var operationContext = new SystemContext(); var namespaceTable = new NamespaceTable(); namespaceTable.GetIndexOrAppend(strOpcNamespaceUri); var typeTable = new TypeTable(namespaceTable); _systemContext = new SystemContext(operationContext) { NamespaceUris = namespaceTable, TypeTable = typeTable, }; }
public ProfileTypeDefinitionController(IDal <ProfileTypeDefinition, ProfileTypeDefinitionModel> dal, IDal <ProfileTypeDefinitionAnalytic, ProfileTypeDefinitionAnalyticModel> dalAnalytics, IDal <Profile, ProfileModel> dalProfile, UserDAL dalUser, ConfigUtil config, ProfileMapperUtil profileUtils, ILogger <ProfileTypeDefinitionController> logger) : base(config, logger) { _dal = dal; _dalAnalytics = dalAnalytics; _dalProfile = dalProfile; _dalUser = dalUser; _profileUtils = profileUtils; }