/Source/Bifrost/Execution/IBindingConventionManager.cs
C# | 35 lines | 11 code | 4 blank | 20 comment | 0 complexity | 8e4d79894a81381e9d5fca5494eae441 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
- using System;
-
- namespace Bifrost.Execution
- {
- /// <summary>
- /// Defines a manager for binding conventions
- /// </summary>
- public interface IBindingConventionManager
- {
- /// <summary>
- /// Add a convention by type
- /// </summary>
- /// <param name="type">Type of convention to add</param>
- /// <remarks>
- /// The type must implement the <see cref="IBindingConvention"/>
- /// </remarks>
- void Add(Type type);
-
- /// <summary>
- /// Add a convention by type generically
- /// </summary>
- /// <typeparam name="T">Type of convention to add</typeparam>
- void Add<T>() where T : IBindingConvention;
-
- /// <summary>
- /// Initialize system
- /// </summary>
- void Initialize();
-
- /// <summary>
- /// Discover bindings and initialize
- /// </summary>
- void DiscoverAndInitialize();
- }
- }