Class FileDownloader
Namespace: Neon.Blazor
Assembly: Neon.Blazor.dll
Syntax
public class FileDownloader
Constructors
FileDownloader(IJSRuntime)
Declaration
public FileDownloader(IJSRuntime js)
Parameters
| Type | Name | Description |
|---|---|---|
| IJSRuntime | js |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
DownloadFileFromUrlAsync(string, string)
Declaration
public Task DownloadFileFromUrlAsync(string fileUrl, string fileName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileUrl | |
| string | fileName |
Returns
| Type | Description |
|---|---|
| Task |