public static ISuperSocketHostBuilder UseSession <TSession>(this ISuperSocketHostBuilder hostBuilder) where TSession : AppSession, new() { return(hostBuilder.UseSessionFactory <GenericSessionFactory <TSession> >()); }