diff --git a/Sln.Iot.CFX/Event/EndpointConnectedEvent.cs b/Sln.Iot.CFX/Event/EndpointConnectedEvent.cs index 03347f7..16d2b89 100644 --- a/Sln.Iot.CFX/Event/EndpointConnectedEvent.cs +++ b/Sln.Iot.CFX/Event/EndpointConnectedEvent.cs @@ -1,4 +1,5 @@ using CFX; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -18,12 +19,14 @@ namespace Sln.Iot.CFX.Event { eve = new EndpointConnected() { - + CFXHandle = "CFX.S07.E022012702", + RequestNetworkUri = "amqp://host33/", + RequestTargetAddress = "/queue/SN23123" }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/EndpointShuttingDownEvent.cs b/Sln.Iot.CFX/Event/EndpointShuttingDownEvent.cs index 74f32de..f8f7718 100644 --- a/Sln.Iot.CFX/Event/EndpointShuttingDownEvent.cs +++ b/Sln.Iot.CFX/Event/EndpointShuttingDownEvent.cs @@ -1,4 +1,5 @@ using CFX; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -18,12 +19,12 @@ namespace Sln.Iot.CFX.Event { eve = new EndpointShuttingDown() { - + CFXHandle = "CFX.S07.E022012702", }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/FaultAcknowledgedEvent.cs b/Sln.Iot.CFX/Event/FaultAcknowledgedEvent.cs index e27f2b4..8d6e4ab 100644 --- a/Sln.Iot.CFX/Event/FaultAcknowledgedEvent.cs +++ b/Sln.Iot.CFX/Event/FaultAcknowledgedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.ResourcePerformance; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,20 @@ namespace Sln.Iot.CFX.Event { eve = new FaultAcknowledged() { - + Operator = new Operator() + { + ActorType = ActorType.Human, + FirstName = "王", + LastName = "晟睿", + LoginName = "admin", + OperatorIdentifier = "OP-1000" + }, + FaultOccurrenceId = Guid.NewGuid() }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/FaultClearedEvent.cs b/Sln.Iot.CFX/Event/FaultClearedEvent.cs index ec1d442..822f821 100644 --- a/Sln.Iot.CFX/Event/FaultClearedEvent.cs +++ b/Sln.Iot.CFX/Event/FaultClearedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.ResourcePerformance; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,20 @@ namespace Sln.Iot.CFX.Event { eve = new FaultCleared() { - + Operator = new Operator() + { + ActorType = ActorType.Human, + FirstName = "王", + LastName = "晟睿", + LoginName = "admin", + OperatorIdentifier = "OP-1000" + }, + FaultOccurrenceId = Guid.NewGuid() }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/FaultOccurredEvent.cs b/Sln.Iot.CFX/Event/FaultOccurredEvent.cs index 1206151..4c1ae14 100644 --- a/Sln.Iot.CFX/Event/FaultOccurredEvent.cs +++ b/Sln.Iot.CFX/Event/FaultOccurredEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.ResourcePerformance; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,23 @@ namespace Sln.Iot.CFX.Event { eve = new FaultOccurred() { - + Fault = new Fault() + { + Cause = FaultCause.MechanicalFailure, + Severity = FaultSeverity.Error, + FaultCode = "ERROR 3943480", + FaultOccurrenceId = Guid.NewGuid(), + Lane = 1, + AccessType = AccessType.Local, + Description = "Error", + OccurredAt = DateTime.Now, + TransactionID = Guid.NewGuid(), + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/HeartbeatEvent.cs b/Sln.Iot.CFX/Event/HeartbeatEvent.cs index 145e067..5159360 100644 --- a/Sln.Iot.CFX/Event/HeartbeatEvent.cs +++ b/Sln.Iot.CFX/Event/HeartbeatEvent.cs @@ -1,4 +1,5 @@ using CFX; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -18,12 +19,13 @@ namespace Sln.Iot.CFX.Event { eve = new Heartbeat() { - + CFXHandle = "CFX.S07.E012012701", + HeartbeatFrequency = TimeSpan.FromSeconds(60) }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/LogEntryRecordedEvent.cs b/Sln.Iot.CFX/Event/LogEntryRecordedEvent.cs index 3be0ded..063d546 100644 --- a/Sln.Iot.CFX/Event/LogEntryRecordedEvent.cs +++ b/Sln.Iot.CFX/Event/LogEntryRecordedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.ResourcePerformance; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,21 @@ namespace Sln.Iot.CFX.Event { eve = new LogEntryRecorded() { - + InformationId = "I1234567890", + Message = "logContent", + Importance = LogImportance.Information, + Lane = 1, + Stage = new Stage() + { + StageSequence = 1, + StageName = "工段1", + StageType = StageType.Work + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/RecipeActivatedEvent.cs b/Sln.Iot.CFX/Event/RecipeActivatedEvent.cs index bf27b14..a6d848d 100644 --- a/Sln.Iot.CFX/Event/RecipeActivatedEvent.cs +++ b/Sln.Iot.CFX/Event/RecipeActivatedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,39 @@ namespace Sln.Iot.CFX.Event { eve = new RecipeActivated() { - + RecipeName = "配方A", + Revision = "1.0", + Lane = 1, + ExpectedCycleTime = 1200000, + ExpectedUnitsPerWorkTransaction = 6, + ExpectedWorkTime = 1200000, + NumberOfComponentsPerUnit = 6, + WorkOrderIdentifier = new WorkOrderIdentifier() + { + WorkOrderId = "WO-1000-1000", + Batch = "WO-1000-1000-B1", + }, + TargetQuantity = 500, + RelevantSurface = Surface.Unspecified, + RecipeStagesInformation = new List() + { + new RecipeStageInformation() + { + Stage = new Stage() + { + StageSequence = 1, + StageName = "工段1", + StageType = StageType.Work + }, + ExpectedCycleTime = 5000, + NumberOfComponentsPerUnit = 6, + }, + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/RecipeModifiedEvent.cs b/Sln.Iot.CFX/Event/RecipeModifiedEvent.cs index 56ffe6c..595517c 100644 --- a/Sln.Iot.CFX/Event/RecipeModifiedEvent.cs +++ b/Sln.Iot.CFX/Event/RecipeModifiedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,23 @@ namespace Sln.Iot.CFX.Event { eve = new RecipeModified() { - + RecipeName = "配方A", + Revision = "1.0", + ModifiedBy = new Operator() + { + ActorType = ActorType.Human, + FirstName = "王", + LastName = "晟睿", + LoginName = "admin", + OperatorIdentifier = "OP-1000" + }, + Reason = RecipeModificationReason.UpdatedGeometry, + Notes = "修改了配方的几何信息", }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/StationOfflineEvent.cs b/Sln.Iot.CFX/Event/StationOfflineEvent.cs index 7e0da67..0bbb3a7 100644 --- a/Sln.Iot.CFX/Event/StationOfflineEvent.cs +++ b/Sln.Iot.CFX/Event/StationOfflineEvent.cs @@ -1,5 +1,6 @@ using CFX; using CFX.ResourcePerformance; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -24,7 +25,7 @@ namespace Sln.Iot.CFX.Event } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/StationOnlineEvent.cs b/Sln.Iot.CFX/Event/StationOnlineEvent.cs index 69ec635..7d5257f 100644 --- a/Sln.Iot.CFX/Event/StationOnlineEvent.cs +++ b/Sln.Iot.CFX/Event/StationOnlineEvent.cs @@ -1,5 +1,6 @@ using CFX; using CFX.ResourcePerformance; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +20,12 @@ namespace Sln.Iot.CFX.Event { eve = new StationOnline() { - + OfflineDuration = TimeSpan.FromMinutes(0) }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/StationParametersModifiedEvent.cs b/Sln.Iot.CFX/Event/StationParametersModifiedEvent.cs index 5af2cf7..806373c 100644 --- a/Sln.Iot.CFX/Event/StationParametersModifiedEvent.cs +++ b/Sln.Iot.CFX/Event/StationParametersModifiedEvent.cs @@ -1,5 +1,8 @@ using CFX; using CFX.ResourcePerformance; +using CFX.Structures; +using Sln.Iot.CFX.Parameters; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +22,19 @@ namespace Sln.Iot.CFX.Event { eve = new StationParametersModified() { - + ModifiedParameters = new List() + { + new TestParameter() + { + Test1 = "1", + Test2 = "2" + } + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/StationStateChangedEvent.cs b/Sln.Iot.CFX/Event/StationStateChangedEvent.cs index eba48eb..691d174 100644 --- a/Sln.Iot.CFX/Event/StationStateChangedEvent.cs +++ b/Sln.Iot.CFX/Event/StationStateChangedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.ResourcePerformance; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,12 @@ namespace Sln.Iot.CFX.Event { eve = new StationStateChanged() { - + NewState = ResourceState.PRD, }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/UnitsArrivedEvent.cs b/Sln.Iot.CFX/Event/UnitsArrivedEvent.cs index abc1aaf..3f17f68 100644 --- a/Sln.Iot.CFX/Event/UnitsArrivedEvent.cs +++ b/Sln.Iot.CFX/Event/UnitsArrivedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,25 @@ namespace Sln.Iot.CFX.Event { eve = new UnitsArrived() { - + Units = new List() + { + new UnitPosition() + { + UnitIdentifier = "UNIT123456789", + PositionNumber = 1, + PositionName = "位置1", + X = 50.0, + Y = 80.0, + Rotation = 0.0, + FlipX =false, + FlipY =false + }, + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/UnitsDepartedEvent.cs b/Sln.Iot.CFX/Event/UnitsDepartedEvent.cs index 28b8251..3ca9b0a 100644 --- a/Sln.Iot.CFX/Event/UnitsDepartedEvent.cs +++ b/Sln.Iot.CFX/Event/UnitsDepartedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,25 @@ namespace Sln.Iot.CFX.Event { eve = new UnitsDeparted() { - + Units = new List() + { + new UnitPosition() + { + UnitIdentifier = "UNIT123456789", + PositionNumber = 1, + PositionName = "位置1", + X = 50.0, + Y = 80.0, + Rotation = 0.0, + FlipX = false, + FlipY = false + }, + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/UnitsProcessedEvent.cs b/Sln.Iot.CFX/Event/UnitsProcessedEvent.cs index d29afe3..f8fc6fc 100644 --- a/Sln.Iot.CFX/Event/UnitsProcessedEvent.cs +++ b/Sln.Iot.CFX/Event/UnitsProcessedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production.Processing; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,25 @@ namespace Sln.Iot.CFX.Event { eve = new UnitsProcessed() { + TransactionId = Guid.NewGuid(), + OverallResult = ProcessingResult.Succeeded, + CommonProcessData = new ProcessData() + { + }, + UnitProcessData = new List() + { + new ProcessedUnit() + { + UnitIdentifier = "ID12345", + + } + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/WorkCompletedEvent.cs b/Sln.Iot.CFX/Event/WorkCompletedEvent.cs index 2ee16a8..9fd6b24 100644 --- a/Sln.Iot.CFX/Event/WorkCompletedEvent.cs +++ b/Sln.Iot.CFX/Event/WorkCompletedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -20,12 +22,27 @@ namespace Sln.Iot.CFX.Event { eve = new WorkCompleted() { - + TransactionID = Guid.NewGuid(), + Result = WorkResult.Completed, + Units = new List() + { + new UnitPosition() + { + UnitIdentifier = "UNIT123456789", + PositionNumber = 1, + PositionName = "位置1", + X = 50.0, + Y = 80.0, + Rotation = 0.0, + FlipX = false, + FlipY = false + }, + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/WorkStageCompletedEvent.cs b/Sln.Iot.CFX/Event/WorkStageCompletedEvent.cs index 12b9ffa..63a6b53 100644 --- a/Sln.Iot.CFX/Event/WorkStageCompletedEvent.cs +++ b/Sln.Iot.CFX/Event/WorkStageCompletedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,26 @@ namespace Sln.Iot.CFX.Event { eve = new WorkStageCompleted() { - + TransactionID = Guid.NewGuid(), + Stage = new Stage() + { + StageSequence = 1, + StageName = "工段1", + StageType = StageType.Work + }, + Result = WorkResult.Completed, + PerformanceImpacts = new List() + { + new PerformanceImpact() + { + Cause = PerformanceImpactCause.LowFeederSpeed, + } + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/WorkStagePausedEvent.cs b/Sln.Iot.CFX/Event/WorkStagePausedEvent.cs index e25d9f4..46aa64f 100644 --- a/Sln.Iot.CFX/Event/WorkStagePausedEvent.cs +++ b/Sln.Iot.CFX/Event/WorkStagePausedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,18 @@ namespace Sln.Iot.CFX.Event { eve = new WorkStagePaused() { - + TransactionID = Guid.NewGuid(), + Stage = new Stage() + { + StageSequence = 1, + StageName = "工段1", + StageType = StageType.Work + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/WorkStageResumedEvent.cs b/Sln.Iot.CFX/Event/WorkStageResumedEvent.cs index 64319ae..23b48fc 100644 --- a/Sln.Iot.CFX/Event/WorkStageResumedEvent.cs +++ b/Sln.Iot.CFX/Event/WorkStageResumedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,18 @@ namespace Sln.Iot.CFX.Event { eve = new WorkStageResumed() { - + TransactionID = Guid.NewGuid(), + Stage = new Stage() + { + StageSequence = 1, + StageName = "工段1", + StageType = StageType.Work + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/WorkStageStartedEvent.cs b/Sln.Iot.CFX/Event/WorkStageStartedEvent.cs index 16fe768..f9888f0 100644 --- a/Sln.Iot.CFX/Event/WorkStageStartedEvent.cs +++ b/Sln.Iot.CFX/Event/WorkStageStartedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -19,12 +21,18 @@ namespace Sln.Iot.CFX.Event { eve = new WorkStageStarted() { - + TransactionID = Guid.NewGuid(), + Stage = new Stage() + { + StageSequence = 1, + StageName = "工段1", + StageType = StageType.Work + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Event/WorkStartedEvent.cs b/Sln.Iot.CFX/Event/WorkStartedEvent.cs index 8b23703..e83a1d5 100644 --- a/Sln.Iot.CFX/Event/WorkStartedEvent.cs +++ b/Sln.Iot.CFX/Event/WorkStartedEvent.cs @@ -1,5 +1,7 @@ using CFX; using CFX.Production; +using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.Event { @@ -20,12 +22,27 @@ namespace Sln.Iot.CFX.Event { eve = new WorkStarted() { - + TransactionID = Guid.NewGuid(), + Lane = 1, + Units = new List() + { + new UnitPosition() + { + UnitIdentifier = "UNIT123456789", + PositionNumber = 1, + PositionName = "位置1", + X = 50.0, + Y = 80.0, + Rotation = 0.0, + FlipX = false, + FlipY = false + }, + } }; } catch (Exception e) { - + SerilogHelper.Instance.Error("终端节点连接事件数据封装异常", e); } return eve; } diff --git a/Sln.Iot.CFX/Parameters/TestParameter.cs b/Sln.Iot.CFX/Parameters/TestParameter.cs new file mode 100644 index 0000000..19eed14 --- /dev/null +++ b/Sln.Iot.CFX/Parameters/TestParameter.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using CFX.Structures; +using CFX; + +namespace Sln.Iot.CFX.Parameters +{ + public class TestParameter : Parameter + { + public string Test1 { get; set; } = string.Empty; + + public string Test2 { get; set; } = string.Empty; + } +} diff --git a/Sln.Iot.CFX/RequestReceived/AreYouThereRequestReceived.cs b/Sln.Iot.CFX/RequestReceived/AreYouThereRequestReceived.cs index 82551dc..8d12086 100644 --- a/Sln.Iot.CFX/RequestReceived/AreYouThereRequestReceived.cs +++ b/Sln.Iot.CFX/RequestReceived/AreYouThereRequestReceived.cs @@ -25,6 +25,7 @@ using CFX; using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.RequestReceived; @@ -70,6 +71,7 @@ public class AreYouThereRequestReceived Message = e.Message } }; + SerilogHelper.Instance.Error("端点在位查询请求数据解析异常", e); } } } \ No newline at end of file diff --git a/Sln.Iot.CFX/RequestReceived/GetActiveFaultsRequestReceived.cs b/Sln.Iot.CFX/RequestReceived/GetActiveFaultsRequestReceived.cs index a10110a..4b3357e 100644 --- a/Sln.Iot.CFX/RequestReceived/GetActiveFaultsRequestReceived.cs +++ b/Sln.Iot.CFX/RequestReceived/GetActiveFaultsRequestReceived.cs @@ -26,6 +26,7 @@ using CFX; using CFX.ResourcePerformance; using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.RequestReceived; @@ -61,6 +62,7 @@ public class GetActiveFaultsRequestReceived Message = e.Message } }; + SerilogHelper.Instance.Error("请求数据解析异常", e); } } } \ No newline at end of file diff --git a/Sln.Iot.CFX/RequestReceived/GetActiveRecipeRequestReceived.cs b/Sln.Iot.CFX/RequestReceived/GetActiveRecipeRequestReceived.cs index 044d21a..b4b4c6a 100644 --- a/Sln.Iot.CFX/RequestReceived/GetActiveRecipeRequestReceived.cs +++ b/Sln.Iot.CFX/RequestReceived/GetActiveRecipeRequestReceived.cs @@ -26,6 +26,7 @@ using CFX; using CFX.Production; using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.RequestReceived; @@ -61,6 +62,7 @@ public class GetActiveRecipeRequestReceived Message = e.Message } }; + SerilogHelper.Instance.Error("请求数据解析异常", e); } } } \ No newline at end of file diff --git a/Sln.Iot.CFX/RequestReceived/GetEndpointInformationRequestReceived.cs b/Sln.Iot.CFX/RequestReceived/GetEndpointInformationRequestReceived.cs index ed7ef9c..d6d629b 100644 --- a/Sln.Iot.CFX/RequestReceived/GetEndpointInformationRequestReceived.cs +++ b/Sln.Iot.CFX/RequestReceived/GetEndpointInformationRequestReceived.cs @@ -25,6 +25,7 @@ using CFX; using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.RequestReceived; @@ -60,6 +61,7 @@ public class GetEndpointInformationRequestReceived Message = e.Message } }; + SerilogHelper.Instance.Error("请求数据解析异常", e); } } } \ No newline at end of file diff --git a/Sln.Iot.CFX/RequestReceived/HandleFaultRequestReceived.cs b/Sln.Iot.CFX/RequestReceived/HandleFaultRequestReceived.cs index ea8169c..399ce97 100644 --- a/Sln.Iot.CFX/RequestReceived/HandleFaultRequestReceived.cs +++ b/Sln.Iot.CFX/RequestReceived/HandleFaultRequestReceived.cs @@ -26,6 +26,7 @@ using CFX; using CFX.ResourcePerformance; using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.RequestReceived; @@ -61,6 +62,7 @@ public class HandleFaultRequestReceived Message = e.Message } }; + SerilogHelper.Instance.Error("请求数据解析异常", e); } } } \ No newline at end of file diff --git a/Sln.Iot.CFX/RequestReceived/ModifyStationParametersRequestReceived.cs b/Sln.Iot.CFX/RequestReceived/ModifyStationParametersRequestReceived.cs index 56af848..c18b90a 100644 --- a/Sln.Iot.CFX/RequestReceived/ModifyStationParametersRequestReceived.cs +++ b/Sln.Iot.CFX/RequestReceived/ModifyStationParametersRequestReceived.cs @@ -26,6 +26,7 @@ using CFX; using CFX.ResourcePerformance; using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.RequestReceived; @@ -61,6 +62,7 @@ public class ModifyStationParametersRequestReceived Message = e.Message } }; + SerilogHelper.Instance.Error("请求数据解析异常", e); } } } \ No newline at end of file diff --git a/Sln.Iot.CFX/RequestReceived/ValidateUnitsRequestReceived.cs b/Sln.Iot.CFX/RequestReceived/ValidateUnitsRequestReceived.cs index 8e46e58..2a9970c 100644 --- a/Sln.Iot.CFX/RequestReceived/ValidateUnitsRequestReceived.cs +++ b/Sln.Iot.CFX/RequestReceived/ValidateUnitsRequestReceived.cs @@ -26,6 +26,7 @@ using CFX; using CFX.InformationSystem.UnitValidation; using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.RequestReceived; @@ -61,6 +62,7 @@ public class ValidateUnitsRequestReceived Message = e.Message } }; + SerilogHelper.Instance.Error("请求数据解析异常", e); } } } \ No newline at end of file diff --git a/Sln.Iot.CFX/RequestReceived/WhoIsThereRequestReceived.cs b/Sln.Iot.CFX/RequestReceived/WhoIsThereRequestReceived.cs index 17008dd..5f35728 100644 --- a/Sln.Iot.CFX/RequestReceived/WhoIsThereRequestReceived.cs +++ b/Sln.Iot.CFX/RequestReceived/WhoIsThereRequestReceived.cs @@ -25,6 +25,7 @@ using CFX; using CFX.Structures; +using Sln.Iot.Serilog; namespace Sln.Iot.CFX.RequestReceived; @@ -60,6 +61,7 @@ public class WhoIsThereRequestReceived Message = e.Message } }; + SerilogHelper.Instance.Error("请求数据解析异常", e); } } } \ No newline at end of file diff --git a/Sln.Iot.CFX/Sln.Iot.CFX.csproj b/Sln.Iot.CFX/Sln.Iot.CFX.csproj index 79e6155..f04e9e7 100644 --- a/Sln.Iot.CFX/Sln.Iot.CFX.csproj +++ b/Sln.Iot.CFX/Sln.Iot.CFX.csproj @@ -10,4 +10,8 @@ + + + +