GKit.BlazorExt 0.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package GKit.BlazorExt --version 0.0.8
                    
NuGet\Install-Package GKit.BlazorExt -Version 0.0.8
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GKit.BlazorExt" Version="0.0.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GKit.BlazorExt" Version="0.0.8" />
                    
Directory.Packages.props
<PackageReference Include="GKit.BlazorExt" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GKit.BlazorExt --version 0.0.8
                    
#r "nuget: GKit.BlazorExt, 0.0.8"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GKit.BlazorExt@0.0.8
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GKit.BlazorExt&version=0.0.8
                    
Install as a Cake Addin
#tool nuget:?package=GKit.BlazorExt&version=0.0.8
                    
Install as a Cake Tool

GKit.BlazorExt

The library provides a set of services and utility components to ease Blazor development.

Usage

Add the services to the DI:

builder.Services.AddGCBlazorServices();

DisposableHandle

The type allows to narrow the type of an object implementing IDisposable/IAsyncDisposable in order to create simple disposable handles without leaking unwanted access.

var hdl = new DisposableHandle((IDisposable)new Timer(p => {}, null, 1000, 1000));

//...

hdl.Dispose();

DisposableScope

Component to help with the disposal of disposable item at the end of a component lifecycle.

<DisposableScope>
  <MyComp />
</DisposableScope>

Then in <MyComp>

@code{
  [CascadingParameter]
  public DisposableScope Scope { get; set; }

  protected override void OnInitialized()
  {
    Scope.AddDisposable(...);
  }
}

TimerService

Service mimicking setInterval and setTimeout Web Apis.

TimedScope

Component which provides a scope for a timer in order to produce synchronized rerenders or notifications.

<TimedScope Period="@TimeSpan.FromSeconds(1)">
  <CurrentTime Now="@DateTime.Now" />
</TimedScope>

FullscreenService

Service which allows to request fullscreen for the document or for a given css selector.

DownloadFileService

Service which allows to cause a download of a Stream as a file.

DocumentEventService

Service which allows to subscribe to event of the document object.

ClipboardService

Service which allows to copy text to clipboard.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on GKit.BlazorExt:

Package Downloads
GKit.MudBlazorExt

Set of MudBlazor extensnions

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.9 104 7/11/2025
0.0.8 140 6/19/2025
0.0.7 148 5/28/2025
0.0.6 151 5/26/2025
0.0.3 221 5/12/2025