Trivial 0.1.1
See the version list below for details.
dotnet add package Trivial --version 0.1.1
NuGet\Install-Package Trivial -Version 0.1.1
<PackageReference Include="Trivial" Version="0.1.1" />
paket add Trivial --version 0.1.1
#r "nuget: Trivial, 0.1.1"
// Install Trivial as a Cake Addin
#addin nuget:?package=Trivial&version=0.1.1
// Install Trivial as a Cake Tool
#tool nuget:?package=Trivial&version=0.1.1
This library includes task utilities.
Tasks
Just add following namespace to your code file to use.
using Trivial.Tasks;
Debounce
Maybe a handler will be asked to process several times in a short time but you just want to process once at the last time because the previous ones are obsolete, e.g. real-time search. You can use following method to do so.
var task = HitTask.debound(() => {
// Do something...
}, TimeSpan.FromMilliseconds(200));
// Somewhere to raise.
task.ProcessAsync();
Throttle
A handler to be frozen for a while after it has processed.
var task = HitTask.throttle(() => {
// Do something...
}, TimeSpan.FromMilliseconds(10000));
// Somewhere to raise.
task.ProcessAsync();
Multiple
A handler to process for the specific times and it will be reset after a while.
var task = HitTask.multiple(() => {
// Do something...
}, 10, null, TimeSpan.FromMilliseconds(200));
// Somewhere to raise.
task.ProcessAsync();
Times
A handler to process for the specific times only and it will be reset after a while, e.g. double click.
var task = HitTask.times(() => {
// Do something...
}, 2, 2, TimeSpan.FromMilliseconds(200));
// Somewhere to raise.
task.ProcessAsync();
Mathematics
Just add following namespace to your code file to use.
using Trivial.Maths;
Security
Just add following namespace to your code file to use.
using Trivial.Security;
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (10)
Showing the top 5 NuGet packages that depend on Trivial:
Package | Downloads |
---|---|
Trivial.Console
The console utilities and rich user interface console. |
|
Trivial.WindowsKit
Some advanced visual controls and utilities for Windows app. |
|
NuScien
A core library of NuScien framework which provides a solution to build community and enterprise projects based on resource entity and accessories with ACL and CMS built-in. |
|
Trivial.Chemistry
A library with basic chemical models. |
|
Trivial.Web
A library for web API. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
8.0.0-preview8 | 79 | 4/13/2024 | |
8.0.0-preview7 | 78 | 3/7/2024 | |
8.0.0-preview6 | 83 | 3/6/2024 | |
8.0.0-preview5 | 70 | 3/1/2024 | |
8.0.0-preview4 | 76 | 2/29/2024 | |
8.0.0-preview3 | 70 | 2/28/2024 | |
8.0.0-preview2 | 73 | 2/27/2024 | |
8.0.0-preview1 | 94 | 2/21/2024 | |
7.2.0 | 1,364 | 11/16/2023 | |
7.2.0-preview1 | 415 | 8/1/2023 | |
7.1.2 | 1,265 | 5/10/2023 | |
7.1.1 | 390 | 5/10/2023 | |
7.1.0 | 519 | 5/8/2023 | |
7.0.0 | 1,278 | 1/20/2023 | |
6.6.0 | 3,506 | 11/9/2022 | |
6.5.6 | 1,245 | 10/10/2022 | |
6.5.5 | 611 | 10/9/2022 | |
6.5.4 | 959 | 8/10/2022 | |
6.5.0 | 680 | 6/17/2022 | |
6.4.0 | 2,729 | 4/14/2022 | |
6.3.0 | 1,923 | 3/8/2022 | |
6.2.0 | 4,474 | 1/30/2022 | |
6.1.0 | 1,846 | 1/23/2022 | |
6.0.0 | 1,333 | 1/1/2022 | |
5.2.0 | 4,485 | 12/15/2021 | |
5.1.1 | 593 | 12/3/2021 | |
5.1.0 | 1,304 | 12/2/2021 | |
5.0.0 | 1,308 | 11/27/2021 | |
4.0.0 | 1,049 | 11/9/2021 | |
3.9.0 | 1,281 | 12/15/2021 | |
3.8.0 | 1,168 | 11/9/2021 | |
3.7.2 | 9,051 | 4/22/2021 | |
3.7.0 | 1,560 | 3/17/2021 | |
3.6.2 | 906 | 3/17/2021 | |
3.6.0 | 6,467 | 11/12/2020 | |
3.5.2 | 7,255 | 4/13/2020 | |
3.5.1 | 1,444 | 4/12/2020 | |
3.5.0 | 1,431 | 4/1/2020 | |
3.4.3 | 1,371 | 3/20/2020 | |
3.4.2 | 1,326 | 3/12/2020 | |
3.4.1 | 1,369 | 2/25/2020 | |
3.4.0 | 1,669 | 2/20/2020 | |
3.3.0 | 1,744 | 2/14/2020 | |
3.2.0 | 2,061 | 1/22/2020 | |
3.1.0 | 2,125 | 12/30/2019 | |
3.0.1 | 1,970 | 12/26/2019 | |
2.2.0 | 1,159 | 2/19/2020 | |
2.1.0 | 1,669 | 12/24/2019 | |
2.0.3 | 1,521 | 12/3/2019 | |
1.2.0 | 26,601 | 5/20/2019 | |
1.1.0 | 2,096 | 5/8/2019 | |
1.0.0 | 4,138 | 5/1/2019 |