Ejemplo n.º 1
0
        public KSociety.Com.App.Dto.Res.Transaction.GetConnectionStatus Execute(GetConnectionStatus request)
        {
            var output = new KSociety.Com.App.Dto.Res.Transaction.GetConnectionStatus();

            try
            {
                var result = _startup.GetConnectionStatus(new ConnectionStatusIntegrationEvent(request.GroupName + ".automation.connection", request.GroupName, request.ConnectionName));

                output.GroupName       = result.GroupName;
                output.ConnectionName  = result.ConnectionName;
                output.ConnectionRead  = result.ConnectionRead;
                output.ConnectionWrite = result.ConnectionWrite;
            }
            catch (Exception ex)
            {
                _logger.LogError("SetTagValue Execute:  " + ex.Message + " - " + ex.StackTrace);
            }

            return(output);
        }