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
IIpLocatorFactoryoptions
IOptionsMonitor<BootstrapBlazorOptions>runtime
IJSRuntimenavigation
NavigationManagerlogger
ILogger<WebClientService>
Methods
DisposeAsync()
public ValueTask DisposeAsync()
Returns
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
GetClientInfo()
获得 ClientInfo 实例方法
public Task<ClientInfo> GetClientInfo()
Returns
SetData(ClientInfo)
SetData 方法由 JS 调用
[JSInvokable]
public void SetData(ClientInfo client)
Parameters
client
ClientInfo