Toolbelt.Blazor.InvokeDownloadAsync
1.0.0
See the version list below for details.
dotnet add package Toolbelt.Blazor.InvokeDownloadAsync --version 1.0.0
NuGet\Install-Package Toolbelt.Blazor.InvokeDownloadAsync -Version 1.0.0
<PackageReference Include="Toolbelt.Blazor.InvokeDownloadAsync" Version="1.0.0" />
paket add Toolbelt.Blazor.InvokeDownloadAsync --version 1.0.0
#r "nuget: Toolbelt.Blazor.InvokeDownloadAsync, 1.0.0"
// Install Toolbelt.Blazor.InvokeDownloadAsync as a Cake Addin
#addin nuget:?package=Toolbelt.Blazor.InvokeDownloadAsync&version=1.0.0
// Install Toolbelt.Blazor.InvokeDownloadAsync as a Cake Tool
#tool nuget:?package=Toolbelt.Blazor.InvokeDownloadAsync&version=1.0.0
Blazor InvokeDownloadAsync
Summary
This NuGet package simply adds the InvokeDownloadAsync()
extension method on your Blazor apps.
@using Toolbelt.Blazor.Extensions
@inject IJSRuntime JSRuntime
...
@code
{
private async Task BeginDownloadAsync()
{
...
await this.JSRuntime.InvokeDownloadAsync(
"Foo.png",
"image/png",
pictureBytes);
}
}
Usage
Install this NuGet package to your Blazor application project.
dotnet add package Toolbelt.Blazor.InvokeDownloadAsync
After that, you can use the InvokeDownloadAsync()
extension method for the IJSRuntime
interface if you have opened the Toolbelt.Blazor.Extensions
namespace.
Syntax
ValueTask InvokeDownloadAsync(
this IJSRuntime jsRuntime,
string fileName,
string contentType,
byte[] contentBytes);
Release notes
Release notes is here.
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net5.0
- Microsoft.AspNetCore.Components.Web (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v.1.0.0
- 1st release.;
To see all the change logs, please visit the following URL.
- https://github.com/jsakamoto/Toolbelt.Blazor.InvokeDownloadAsync/blob/main/RELEASE-NOTES.txt