提交 e78ff69c 编写于 作者: 若汝棋茗

修复aspnetcore创建异常的bug

上级 827a8b0e
......@@ -51,7 +51,7 @@ namespace Microsoft.Extensions.DependencyInjection
var config = new TouchSocketConfig()
.UseAspNetCoreContainer(service);
configAction?.Invoke(config);
IHttpService tcpService = config.Container.Resolve<HttpService>();
IHttpService tcpService = new HttpService();
tcpService.Setup(config)
.Start();
......
......@@ -49,7 +49,7 @@ namespace Microsoft.Extensions.DependencyInjection
var config = new TouchSocketConfig()
.UseAspNetCoreContainer(service);
configAction?.Invoke(config);
ITcpService tcpService = config.Container.Resolve<TcpService>();
ITcpService tcpService = new TcpService();
tcpService.Setup(config)
.Start();
......
......@@ -5,7 +5,7 @@
<ApplicationIcon>logo.ico</ApplicationIcon>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>RRQM.pfx</AssemblyOriginatorKeyFile>
<Version>0.7.1</Version>
<Version>0.7.2</Version>
<LangVersion>8.0</LangVersion>
<Company>若汝棋茗</Company>
<Copyright>Copyright © 2022 若汝棋茗</Copyright>
......@@ -69,6 +69,6 @@ API:https://www.yuque.com/rrqm/touchsocket/index</Description>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.26" />
<PackageReference Include="Microsoft.Extensions.Options" Version="3.0.0" />
<PackageReference Include="TouchSocket" Version="0.7.1" />
<PackageReference Include="TouchSocket" Version="0.7.2" />
</ItemGroup>
</Project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册