ModelFactoryGenerateAlertRuleProcessResult Method

Generates a AlertRuleProcessResultDto to be logged to the database after an alert rule was processed.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static AlertRuleProcessResultDto GenerateAlertRuleProcessResult(
	SendResult? result,
	AlertProcessingContext context,
	EventCodeDto? eventCode
)

Parameters

result  SendResult
A result object returned by the connector after interacting with its remote endpoint. This is not identical to the business object that will be generated by this method: it contains other properties that are used internally by the processing pipeline to finalize operations, but will contain other data suitable for logging.
context  AlertProcessingContext
The processing input to the connector.
eventCode  EventCodeDto
Event code from the device in the original request

Return Value

AlertRuleProcessResultDto
An AlertRuleProcessResultDto to be logged to the database.

Exceptions

ArgumentNullExceptionThrown if result is .

See Also