| | |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | public WebResponseContent DeviceWarning(AGVDTO DTO) |
| | | private static readonly SemaphoreSlim _semaphoreUpdate = new SemaphoreSlim(1, 1); |
| | | public async Task<WebResponseContent> DeviceWarning(AGVDTO DTO) |
| | | { |
| | | await _semaphoreUpdate.WaitAsync(); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | LogFactory.GetLog("AG涓婁紶鎶ヨ淇℃伅").InfoFormat(true, $"璇锋眰鍙傛暟锛歿JsonConvert.SerializeObject(ex.Message)}", ""); |
| | | return content.Error(ex.Message); |
| | | } |
| | | finally |
| | | { |
| | | _semaphoreUpdate.Release(); |
| | | } |
| | | |
| | | } |
| | | #endregion 澶栭儴鎺ュ彛鏂规硶 |