PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
C# | 29 lines | 8 code | 1 blank | 20 comment | 0 complexity | e56fca480655b40afb62214ee0e22409 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	/// Add-ins are used to extend NUnti. All add-ins must
12	/// implement the IAddin interface.
13	/// </summary>
14	public interface IAddin
15	{
16		/// <summary>
17		/// When called, the add-in installs itself into
18		/// the host, if possible. Because NUnit uses separate
19		/// hosts for the client and test domain environments,
20		/// an add-in may be invited to istall itself more than
21		/// once. The add-in is responsible for checking which
22		/// extension points are supported by the host that is
23		/// passed to it and taking the appropriate action.
24		/// </summary>
25		/// <param name="host">The host in which to install the add-in</param>
26		/// <returns>True if the add-in was installed, otehrwise false</returns>
27		bool Install( IExtensionHost host );
28	}
29}