mirror of
https://github.com/RRQM/TouchSocket.git
synced 2025-12-18 17:36:43 +08:00
更新Hosting机制。
新增交换大小端序 优化内存池写入和读取端序
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -34,7 +35,11 @@ namespace TouchSocket.Core.AspNetCore
|
||||
public AspNetCoreContainer(IServiceCollection services)
|
||||
{
|
||||
this.m_services = services ?? throw new ArgumentNullException(nameof(services));
|
||||
services.AddSingleton<IResolver>(this);
|
||||
services.AddSingleton<IResolver>(privoder =>
|
||||
{
|
||||
this.m_serviceProvider ??= privoder;
|
||||
return this;
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
Reference in New Issue
Block a user