public static SuperSocketHostBuilder <TReceivePackage> ConfigurePackageHandler <TReceivePackage>(this SuperSocketHostBuilder <TReceivePackage> hostBuilder, Func <IAppSession, TReceivePackage, ValueTask> packageHandler)
     where TReceivePackage : class
 {
     return(hostBuilder.UsePackageHandler(packageHandler));
 }
 public static SuperSocketHostBuilder <TReceivePackage> ConfigurePackageHandler <TReceivePackage>(this SuperSocketHostBuilder <TReceivePackage> hostBuilder, Func <IAppSession, TReceivePackage, ValueTask> packageHandler, Func <IAppSession, PackageHandlingException <TReceivePackage>, ValueTask <bool> > errorHandler = null)
     where TReceivePackage : class
 {
     return(hostBuilder.UsePackageHandler(packageHandler, errorHandler: errorHandler));
 }