/// <summary>
        /// Records a performance event with the specified event name concatenating the given parameter to the event.
        /// </summary>
        /// <param name="marker">The <see cref="DeviceWorkflowMarker" />.</param>
        /// <param name="parameter">The parameter to include in the logged marker.</param>
        protected void RecordEvent(DeviceWorkflowMarker marker, string parameter)
        {
            string description = marker.GetDescription();

            WorkflowLogger?.RecordPerformanceEvent($"{description}_{parameter}");

            // Also log this to the detail table so that these values can be pulled for reporting
            WorkflowLogger?.RecordExecutionDetail(marker, parameter);
        }
Exemple #2
0
 /// <summary>
 /// Records a performance event with the specified <see cref="DeviceWorkflowMarker" />.
 /// </summary>
 /// <param name="marker">The <see cref="DeviceWorkflowMarker" />.</param>
 protected void RecordEvent(DeviceWorkflowMarker marker)
 {
     WorkflowLogger.RecordEvent(marker);
 }
 /// <summary>
 /// Records a performance event with the specified event name concatenating the given parameter to the event.
 /// </summary>
 /// <param name="marker">The <see cref="DeviceWorkflowMarker" />.</param>
 /// <param name="parameter">The parameter to include in the logged marker.</param>
 protected void RecordEvent(DeviceWorkflowMarker marker, string parameter)
 {
     WorkflowLogger?.RecordEvent(marker, parameter);
 }
 /// <summary>
 /// Records additional workflow details with the specified label and message.
 /// </summary>
 /// <param name="marker">The <see cref="DeviceWorkflowMarker" />.</param>
 /// <param name="message">The message.</param>
 protected void RecordInfo(DeviceWorkflowMarker marker, string message)
 {
     WorkflowLogger?.RecordExecutionDetail(marker, message);
 }
 /// <summary>
 /// Records a performance event with the specified event name.
 /// </summary>
 /// <param name="marker">The <see cref="DeviceWorkflowMarker" />.</param>
 protected void RecordEvent(DeviceWorkflowMarker marker)
 {
     WorkflowLogger?.RecordPerformanceEvent(marker.GetDescription());
 }
        /// <summary>
        /// Records additional workflow details with the specified label and message.
        /// </summary>
        /// <param name="marker">The <see cref="DeviceWorkflowMarker" />.</param>
        /// <param name="message">The message.</param>
        public void RecordExecutionDetail(DeviceWorkflowMarker marker, string message)
        {
            ActivityExecutionDetailLog log = new ActivityExecutionDetailLog(_executionData, marker.GetDescription(), message);

            ExecutionServices.DataLogger.Submit(log);
        }
        /// <summary>
        /// Records a performance event with the specified event name concatenating the given parameter to the event.
        /// </summary>
        /// <param name="marker">The <see cref="DeviceWorkflowMarker" />.</param>
        /// <param name="parameter">The parameter to include in the logged marker.</param>
        public void RecordEvent(DeviceWorkflowMarker marker, string parameter)
        {
            string description = marker.GetDescription();

            RecordPerformanceEvent($"{description}_{parameter}");
        }
 /// <summary>
 /// Logs an activity exeuction performance event for the specified <see cref="DeviceWorkflowMarker" />.
 /// </summary>
 /// <param name="marker">The <see cref="DeviceWorkflowMarker" />.</param>
 public void RecordEvent(DeviceWorkflowMarker marker)
 {
     RecordPerformanceEvent(marker.GetDescription());
 }