PageRenderTime 9ms CodeModel.GetById 6ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

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