Пример #1
0
        public Startup(IHostingEnvironment env)
        {
            var builder = new ConfigurationBuilder().SetBasePath(env.ContentRootPath)
                          .AddJsonFile("appSettings.json", optional: false, reloadOnChange: true);

            Configuration = builder.Build();
            var mllpHostname   = Startup.Configuration["mllpClientHost:mllpHostname"];
            int mllpPortNumber = Convert.ToInt32(Startup.Configuration["mllpClientPort:mllpPortNumber"]);

            HL7CommunicationService = new HL7CommunicationService(mllpHostname, mllpPortNumber);

            StartHL7Listener();
        }
 public HL7ComController(ILogger <ExaminationController> logger, IPatientInfoRepository patientInfoRepository)
 {
     hL7CommunicationService = new HL7CommunicationService(hostname, port);
     _patientInfoRepository  = patientInfoRepository;
     _logger = logger;
 }