IForecourtConfig.cs 1019 B

12345678910111213141516171819202122232425
  1. namespace Wayne.ForecourtControl
  2. {
  3. /// <summary>
  4. /// The Forecourt Config interface is used to configure the forecourt
  5. /// using XML documents. The Xml document should conform to the
  6. /// ForecourtConfig.xsd schema.
  7. /// </summary>
  8. public interface IForecourtConfig
  9. {
  10. /// <summary>
  11. /// Reads the Forecourt control configuration and returns
  12. /// a XML structure.
  13. /// </summary>
  14. /// <returns>An Xml document as a string</returns>
  15. /// <exception cref="ForecourtControlException">If the configuration reading fails.</exception>
  16. string ReadConfiguration();
  17. /// <summary>
  18. /// Writes the specified configuration XML to the forecourt control.
  19. /// </summary>
  20. /// <param name="configurationXml">A valid ForecourtConfig xml file.</param>
  21. /// <exception cref="ForecourtControlException">If the configuration writing fails.</exception>
  22. void WriteConfiguration(string configurationXml);
  23. }
  24. }