public static IServiceCollection UseBeetlexHttp(this IServiceCollection service, Action <HttpOptions> action, params System.Reflection.Assembly[] assemblies)
        {
            HttpSettingHandler settingHandler = new HttpSettingHandler();

            settingHandler.Assemblies = assemblies;
            settingHandler.Options    = action;
            settingHandler.Services   = service;
            service.AddSingleton <HttpSettingHandler>(settingHandler);
            ServiceCollection services = new ServiceCollection();

            return(service.AddHostedService <HttpServer>());
        }
 public HttpServer(HttpSettingHandler httpSettingHandler)
 {
     mSettingHandler = httpSettingHandler;
 }