public static MSFrameworkBuilder UseEventDispatcher(this MSFrameworkBuilder builder)
        {
            var assemblies = AssemblyFinder.GetAllList();

            builder.UseEventDispatcher(assemblies.ToArray());
            return(builder);
        }
        public static MSFrameworkBuilder UseEventDispatcher(this MSFrameworkBuilder builder, params Type[] eventTypes)
        {
            var excludeAssembly = typeof(MSFrameworkBuilder).Assembly;
            var assemblies      = eventTypes.Select(x => x.Assembly).ToList();

            if (!assemblies.Contains(excludeAssembly))
            {
                assemblies.Add(excludeAssembly);
            }

            builder.UseEventDispatcher(assemblies.ToArray());
            return(builder);
        }