/// <summary>
 /// Loads assembly scanner according to the spedicified acion.
 /// </summary>
 /// <param name="kernel">the kernel instance to act upon.</param>
 /// <param name="scan">the scanner sequence to process.</param>
 public static void Scan( this IKernel kernel, Action<AssemblyScanner> scan )
 {
     var assemblyLoader = new AssemblyScanner();
     scan( assemblyLoader );
     assemblyLoader.Process( kernel );
 }
 /// <summary>
 /// Assembly the types specified by the assembly loader.
 /// </summary>
 /// <param name="kernel">the kernel instance to act upon.</param>
 /// <param name="assemblyScanner">the loader to process.</param>
 public static void Scan( this IKernel kernel, AssemblyScanner assemblyScanner )
 {
     assemblyScanner.Process( kernel );
 }