ITankGroupEvents.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/Com/ITankGroupEvents.cs $
  4. *
  5. * 2 07-03-09 15:35 roger.månsson
  6. * Made interface public .
  7. *
  8. * 1 07-01-05 15:13 roger.månsson
  9. * Created
  10. */
  11. #endregion
  12. using System.Runtime.InteropServices;
  13. namespace Wayne.ForecourtControl.Com
  14. {
  15. /// <summary>
  16. /// Event interface for ITankGroup
  17. /// </summary>
  18. [ComVisible(true)]
  19. [InterfaceType( ComInterfaceType.InterfaceIsIDispatch)]
  20. public interface ITankGroupEvents
  21. {
  22. #region Request completed events
  23. /// <summary>
  24. /// Event invoked when a Block request has completed.
  25. /// </summary>
  26. /// <param name="sender">The TankGroup object where the method was invoked.</param>
  27. /// <param name="success">True if the request succeeded.</param>
  28. /// <param name="userToken">Token object that was supplied in the asynchronous request.</param>
  29. void OnBlockCompleted(ITankGroup sender, bool success, object userToken);
  30. /// <summary>
  31. /// Event invoked when a Unblock request has completed.
  32. /// </summary>
  33. /// <param name="sender">The TankGroup object where the method was invoked.</param>
  34. /// <param name="success">True if the request succeeded.</param>
  35. /// <param name="userToken">Token object that was supplied in the asynchronous request.</param>
  36. void OnUnblockCompleted(ITankGroup sender, bool success, object userToken);
  37. /// <summary>
  38. /// Event invoked when a RegisterManualDelivery request has completed.
  39. /// </summary>
  40. /// <param name="sender">The TankGroup object where the method was invoked.</param>
  41. /// <param name="success">True if the request succeeded.</param>
  42. /// <param name="userToken">Token object that was supplied in the asynchronous request.</param>
  43. void OnRegisterManualDeliveryCompleted(ITankGroup sender, bool success, object userToken);
  44. #endregion
  45. #region Unsolicited events
  46. /// <summary>
  47. /// Event that is raised when a fuel delivery is detected. It can be both manual and probe detected deliveries.
  48. /// </summary>
  49. /// <param name="sender"></param>
  50. /// <param name="e"></param>
  51. void OnFuelDelivery(ITankGroup sender, IFuelDeliveryEventArgs e);
  52. #endregion
  53. }
  54. }