PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/interfaces/Extensibility/IExtensionHost.cs

#
C# | 47 lines | 18 code | 4 blank | 25 comment | 0 complexity | 5efe78626c7b427bec498c228c710aad 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. /// The IExtensionHost interface is implemented by each
  11. /// of NUnit's Extension hosts. Currently, there is
  12. /// only one host, which resides in the test domain.
  13. /// </summary>
  14. public interface IExtensionHost
  15. {
  16. /// <summary>
  17. /// Get a list of the ExtensionPoints provided by this host.
  18. /// </summary>
  19. IExtensionPoint[] ExtensionPoints
  20. {
  21. get;
  22. }
  23. /// <summary>
  24. /// Get an interface to the framework registry
  25. /// </summary>
  26. [Obsolete("Use the FrameworkRegistry extension point instead")]
  27. IFrameworkRegistry FrameworkRegistry
  28. {
  29. get;
  30. }
  31. /// <summary>
  32. /// Return an extension point by name, if present
  33. /// </summary>
  34. /// <param name="name">The name of the extension point</param>
  35. /// <returns>The extension point, if found, otherwise null</returns>
  36. IExtensionPoint GetExtensionPoint( string name );
  37. /// <summary>
  38. /// Gets the ExtensionTypes supported by this host
  39. /// </summary>
  40. /// <returns>An enum indicating the ExtensionTypes supported</returns>
  41. ExtensionType ExtensionTypes { get; }
  42. }
  43. }