Tech.UI.WasmHttpWithToasAndLoader 1.1.0

dotnet add package Tech.UI.WasmHttpWithToasAndLoader --version 1.1.0
                    
NuGet\Install-Package Tech.UI.WasmHttpWithToasAndLoader -Version 1.1.0
                    
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="Tech.UI.WasmHttpWithToasAndLoader" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tech.UI.WasmHttpWithToasAndLoader" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Tech.UI.WasmHttpWithToasAndLoader" />
                    
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 Tech.UI.WasmHttpWithToasAndLoader --version 1.1.0
                    
#r "nuget: Tech.UI.WasmHttpWithToasAndLoader, 1.1.0"
                    
#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 Tech.UI.WasmHttpWithToasAndLoader@1.1.0
                    
#: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=Tech.UI.WasmHttpWithToasAndLoader&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Tech.UI.WasmHttpWithToasAndLoader&version=1.1.0
                    
Install as a Cake Tool
Bu versiyon ile
1 - Metoda gore loader degiskenligi parametreye baglandi. Varsayilan isSingleType = true; yani butun metodlarda (get, post, update, delete) tek loader tipi.
2 - Sure parametresi ile belirlenen surenin altinda loader cikmama durumu saglandi. Varsayilan minDurationMs = 1; milisaniye cinsinden en dusuk olarak atandi.
3 - Loader'in gec baslama durumu vardi. Bu giderildi.
Program.cs icerindeki kullanim da degisiklik oldu geri kalan kullanim aynidir.

***
Bu Paket i�erisinde Tech.UI.Toast ve Tech.UI.Loader paketleri haz�r geldi�i i�in bu paketler ayr�ca kurulmamal�d�r. Kurulu ise kald�rlmas� gerekmektedir. Yoksa hata vermese bile �al��mayacakt�r. Bu paketlerin kullan�m �ekillerinde bir de�i�iklik yoktur.

// index.html or _Host.cshtml or _Layout.cshtml  
<link href="_content/Tech.UI.WasmHttpWithToast/css/toast.css" rel="stylesheet" />  
<link href="_content/Tech.UI.WasmHttpWithToast/css/loader.css" rel="stylesheet" />  

 // _Imports.razor
@using Tech.UI.WasmHttpWithToast.Services.HttpServices
@using Tech.UI.WasmHttpWithToast.Components
@using Tech.UI.WasmHttpWithToast.Services.ToastServices  @* Toast kullan�m� i�indir. *@
@using Tech.UI.WasmHttpWithToast.Services.LoaderServices @* Loader kullan�m� i�indir. *@

 // Program.cs
using Tech.UI.WasmHttpWithToast.Services;
builder.Services.AddWasmHttpServices(true, 1000, builder.HostEnvironment.BaseAddress);

// App.razor or MainLayout.razor
<TechLoaderRazor /> @* Toast kullan�m� i�indir. *@
<TechToastRazor /> @* Loader kullan�m� i�indir. *@

 // In Blazor component
@inject ITechHttpService _techHttpService
@inject ITechToastService _techToastService  // Toast kullan�m� i�indir. 
@inject TechLoaderService _techLoaderService // Loader kullan�m� i�indir.

@* Example Code *@
<h3>Test</h3>

<hr/>

<button class="btn btn-success" @onclick="@ExampleHttp">GET</button>
<hr/>

@* Toast Blazor component *@
<button class="btn btn-info" @onclick="@(() => _techToastService.ShowInfoToast())">Info Toast</button>
<button class="btn btn-success" @onclick="@(() => _techToastService.ShowSuccessToast())">Success Toast</button>
<button class="btn btn-warning" @onclick="@(() => _techToastService.ShowWarningToast())">Warning Toast</button>
<button class="btn btn-danger" @onclick="@(() => _techToastService.ShowErrorToast())">Error Toast</button>
<hr/>


@* Loader Test Button *@
<button class="btn btn-info" @onclick="@SimulateProcess">Loader Test</button>


@code {
	async Task ExampleHttp()
	{
		var response = await _techHttpService.HttpClientAsync<object>(HttpClientMethod.Get, "",
		 new HttpOptions
		 {
			 action = "",
			 body = null,
		 });
		// if (response.Successed)
		// {
		// 	_techToastService.ShowSuccessToast("�stek ba�ar�l�!");
		// }
		// else
		// {
		// 	_techToastService.ShowErrorToast("�stek ba�ar�s�z!");
		// }
	}

	private async Task SimulateProcess()
	{
		_techLoaderService.Show();
		await Task.Delay(1000); // �rnek i�lem
		_techLoaderService.Hide();
	}

}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 366 11/30/2025
1.0.0 252 11/14/2025