PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/Source/Bifrost/Execution/IBindingConventionManager.cs

#
C# | 35 lines | 11 code | 4 blank | 20 comment | 0 complexity | 8e4d79894a81381e9d5fca5494eae441 MD5 | raw file
 1using System;
 2
 3namespace Bifrost.Execution
 4{
 5	/// <summary>
 6	/// Defines a manager for binding conventions
 7	/// </summary>
 8    public interface IBindingConventionManager
 9    {
10		/// <summary>
11		/// Add a convention by type
12		/// </summary>
13		/// <param name="type">Type of convention to add</param>
14		/// <remarks>
15		/// The type must implement the <see cref="IBindingConvention"/>
16		/// </remarks>
17        void Add(Type type);
18
19		/// <summary>
20		/// Add a convention by type generically
21		/// </summary>
22		/// <typeparam name="T">Type of convention to add</typeparam>
23        void Add<T>() where T : IBindingConvention;
24
25		/// <summary>
26		/// Initialize system
27		/// </summary>
28        void Initialize();
29
30		/// <summary>
31		/// Discover bindings and initialize
32		/// </summary>
33        void DiscoverAndInitialize();
34    }
35}