public static Task<TService> BuildServiceAsync<TService>(
this TouchSocketConfig config,
CancellationToken cancellationToken = default
)
where TService : new(), IServiceBase
<ExtensionAttribute>
Public Shared Function BuildServiceAsync(Of TService As {New, IServiceBase}) (
config As TouchSocketConfig,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of TService)[<ExtensionAttribute>]
static member BuildServiceAsync :
config : TouchSocketConfig *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<'TService> when 'TService : new() and IServiceBase[缺少 "M:TouchSocket.Sockets.TouchSocketConfigExtension.BuildServiceAsync``1(TouchSocket.Core.TouchSocketConfig,System.Threading.CancellationToken)" 的 <param name="config"/> 文档]
[缺少 "M:TouchSocket.Sockets.TouchSocketConfigExtension.BuildServiceAsync``1(TouchSocket.Core.TouchSocketConfig,System.Threading.CancellationToken)" 的 <param name="cancellationToken"/> 文档]
[缺少 "M:TouchSocket.Sockets.TouchSocketConfigExtension.BuildServiceAsync``1(TouchSocket.Core.TouchSocketConfig,System.Threading.CancellationToken)" 的 <typeparam name="TService"/> 文档]
[缺少 "M:TouchSocket.Sockets.TouchSocketConfigExtension.BuildServiceAsync``1(TouchSocket.Core.TouchSocketConfig,System.Threading.CancellationToken)" 的 <returns> 文档]