コード例 #1
0
 public Worker(OPCUAClient opc, Logger logger, OPCUATagEventHandler tagEventHandler, Data.EventHandlerLinker projectWorker, IConfiguration configuration)
 {
     _opc             = opc;
     _logger          = logger;
     _tagEventHandler = tagEventHandler;
     _projectWorker   = projectWorker;
     _configuration   = configuration;
 }
コード例 #2
0
        public Task <IActionResult> TestReadFromServer()
        {
            IOptions <ServerOptions> sampleOptions = Options.Create <ServerOptions>(new ServerOptions());
            OPCUAClient _client = new OPCUAClient();

            ApiController _apiController = new ApiController(sampleOptions, _client);
            var           result         = _apiController.GetNode(1);
            var           okResult       = result;

            Assert.NotNull(okResult);
            //Assert.Equal(200, okResult);
            return(null);
        }
コード例 #3
0
 public EventHandlerLinker(OPCUAClient _opc, Logger _logger, EmailHandler _email)
 {
     opc    = _opc;
     logger = _logger;
     email  = _email;
 }