/// <summary> /// /// </summary> /// /// <param name="event"></param> /// public void TrackSecurity(ExchangeAcquisitionEvent @event) { try { gateway.Send(@event, TrackingChannel.SecurityAcquisitionEventDestination); } catch (MessageException exception) { ExceptionHandler<ServiceExceptionFactory>.Process(exception, false, "Failed to track security acquisition event."); } }
/// <summary> /// /// </summary> /// /// <param name="event"></param> /// public void Track(ExchangeAcquisitionEvent @event) { try { gateway.Send(@event); } catch (MessageException exception) { ExceptionHandler<ServiceExceptionFactory>.Process(exception, false, "Failed to track acquisition event."); } }
/// <summary> /// /// </summary> /// /// <param name="event"></param> /// public void Track(ExchangeAcquisitionEvent @event) { try { //acquisitionTrackerDataAccess.SaveAcquisitionEvent(@event); } catch (Exception exception) { ExceptionHandler<DataAccessExceptionFactory>.Process(exception, "Failed to save acquisition event."); } }
/// <summary> /// /// </summary> /// /// <param name="message"></param> /// void OnValidationAcquisitionEventReceived(ExchangeAcquisitionEvent @event) { Console.WriteLine(@event); try { logger.DebugFormat("Validation Event Received: {0}", @event.ExchangeResponse.ToString()); tracker.TrackValidation(@event); } catch (Exception exception) { Console.WriteLine("Error: " + exception.Message); logger.Warn("Error OnValidationAcquisitionEventReceived", exception); } }
/// <summary> /// /// </summary> /// /// <param name="event"></param> /// public void OnAcquisitionEventReceived(ExchangeAcquisitionEvent @event) { Console.WriteLine(@event); try { tracker.Track(@event); } catch (Exception exception) { Console.WriteLine("Error: " + exception.Message); logger.Warn("Error OnAcquisitionEventReceived", exception); } }