Table of Contents

Class WebClientService

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

WebClient 服务类

public class WebClientService : IAsyncDisposable
Inheritance
WebClientService
Implements
Inherited Members
Extension Methods

Constructors

WebClientService(IIpLocatorFactory, IOptionsMonitor<BootstrapBlazorOptions>, IJSRuntime, NavigationManager, ILogger<WebClientService>)

WebClient 服务类

public WebClientService(IIpLocatorFactory ipLocatorFactory, IOptionsMonitor<BootstrapBlazorOptions> options, IJSRuntime runtime, NavigationManager navigation, ILogger<WebClientService> logger)

Parameters

ipLocatorFactory IIpLocatorFactory
options IOptionsMonitor<BootstrapBlazorOptions>
runtime IJSRuntime
navigation NavigationManager
logger ILogger<WebClientService>

Methods

DisposeAsync()

public ValueTask DisposeAsync()

Returns

ValueTask

DisposeAsync(bool)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

protected virtual ValueTask DisposeAsync(bool disposing)

Parameters

disposing bool

Returns

ValueTask

GetClientInfo()

获得 ClientInfo 实例方法

public Task<ClientInfo> GetClientInfo()

Returns

Task<ClientInfo>

SetData(ClientInfo)

SetData 方法由 JS 调用

[JSInvokable]
public void SetData(ClientInfo client)

Parameters

client ClientInfo