beetlex-io / FastHttpApi

a lightweight and high-performance http/websocket service component in the dotnet core platform that supports TLS.
Apache License 2.0
650 stars 175 forks source link

nuget中fasthttpapi版本 #166

Closed hugeng1979 closed 2 years ago

hugeng1979 commented 2 years ago

从nuget中下载了最新版本 2.0.8 <PackageReference Include="BeetleX.FastHttpApi" Version="2.0.8" 发现原来的代码有报错了,类HttpApiServer 下的Log方法只剩下下面几个 public override void Log(IServer server, ServerLogEventArgs e); public void Log(LogType type, ISession session, string message); public void Log(LogType type, ISession session, object tag, string message);

而在此github下的源代码,fasthttpapi最新版本是1.8.2.7 在文件 https://github.com/beetlex-io/FastHttpApi/blob/master/src/HttpApiServer.cs 是有此方法 public void Log(LogType type, string message)

请问,我能用nuget里的最新版本吗?还是要选择哪个指定版本更合适?

beetlex-io commented 2 years ago

建议用新版本,然后调整一下日志调用的方法

hugeng1979 commented 2 years ago

能给个具体的调用例子吗? ISession填什么参数?有没有最新版本的相关文档访问地址?谢谢。

beetlex-io commented 2 years ago

可以通过ihttpcontext得到,这个参数也可以为空