PageRenderTime 49ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

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