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.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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