PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/interfaces/Extensibility/IAddin.cs

#
C# | 29 lines | 8 code | 1 blank | 20 comment | 0 complexity | e56fca480655b40afb62214ee0e22409 MD5 | raw file
Possible License(s): GPL-2.0
  1. // ****************************************************************
  2. // Copyright 2007, Charlie Poole
  3. // This is free software licensed under the NUnit license. You may
  4. // obtain a copy of the license at http://nunit.org
  5. // ****************************************************************
  6. using System;
  7. namespace NUnit.Core.Extensibility
  8. {
  9. /// <summary>
  10. /// Add-ins are used to extend NUnti. All add-ins must
  11. /// implement the IAddin interface.
  12. /// </summary>
  13. public interface IAddin
  14. {
  15. /// <summary>
  16. /// When called, the add-in installs itself into
  17. /// the host, if possible. Because NUnit uses separate
  18. /// hosts for the client and test domain environments,
  19. /// an add-in may be invited to istall itself more than
  20. /// once. The add-in is responsible for checking which
  21. /// extension points are supported by the host that is
  22. /// passed to it and taking the appropriate action.
  23. /// </summary>
  24. /// <param name="host">The host in which to install the add-in</param>
  25. /// <returns>True if the add-in was installed, otehrwise false</returns>
  26. bool Install( IExtensionHost host );
  27. }
  28. }