![]() |
VOOZH | about |
dotnet add package TheOmenDen.Shared --version 2023.11.27.49
NuGet\Install-Package TheOmenDen.Shared -Version 2023.11.27.49
<PackageReference Include="TheOmenDen.Shared" Version="2023.11.27.49" />
<PackageVersion Include="TheOmenDen.Shared" Version="2023.11.27.49" />Directory.Packages.props
<PackageReference Include="TheOmenDen.Shared" />Project file
paket add TheOmenDen.Shared --version 2023.11.27.49
#r "nuget: TheOmenDen.Shared, 2023.11.27.49"
#:package TheOmenDen.Shared@2023.11.27.49
#addin nuget:?package=TheOmenDen.Shared&version=2023.11.27.49Install as a Cake Addin
#tool nuget:?package=TheOmenDen.Shared&version=2023.11.27.49Install as a Cake Tool
Conditions and Consequences that can be chained together against the EnumerationBase implementationsReadOnlySpan<T>QueryStringsType Type to allow for easier retrieval of ancestorsProgress Bars that can also be threadsafe, as well as a simple progress indicator.
ConsoleColor with any one of the provided colors.Guard methods that can be used to help control the flow and validtion of models and creation of various components in an application domain.
AsynchronousStreamOutcome set of extensions are a few methods for capturing OperationOutcome during the iterations of an IAsyncEnumerable<T>
T in question must implement our IEntity interface.await foreach() patterntry...catch within the Async Iterator.Func<in T, in CancellationToken, out ValueTask<OperationOutcome>>
OperationOutcome objectTuple<T,OperationOutcome> coupling to be a launching strategy for further processing.Record Types are implemented as such:
EnumerationBase<TKey>
Enum type that you will see in C# but provides the ability to work with Condtions (When) and Consequences (Then) allowing for the expansion of logic ontop of Enumerations.EnumrationBase<TKey, TEnumeration> to define a customized "backing field" for your own design.EnumerationFlagBase<TKey>
C# enumerations.Condtions (When) ... Consequences (Then) pattern - allowing for more robust and well defined logic.Guard partial class system
Guard.FromCondition method. This allows for the passing of a delegate that has a boolean result, and an Exception object as an outcome.
Guard.FromCondition(Func<Boolean>, Exception exception)System.Random.Shared, a thread-safe Random Number Generator.List<Int32> is supplied| Method | Mean | Error | StdDev | Completed Work Items | Lock Contentions | Gen0 | Gen1 | Gen2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| GetRandomElementFromSmallestDataSet | 16.827 ns | 0.1809 ns | 0.1413 ns | - | - | - | - | - | - |
| GetRandomElementFromSmallDataSet | 12.729 ns | 0.1129 ns | 0.1001 ns | - | - | - | - | - | - |
| GetRandomElementFromMediumDataSet | 9.705 ns | 0.0698 ns | 0.0619 ns | - | - | - | - | - | - |
| GetRandomElementFromLargeDataSet | 18.914 ns | 0.3749 ns | 0.4167 ns | - | - | - | - | - | - |
| GetRandomElementsFromSmallestDataSet | 191.513 ns | 1.9762 ns | 1.8485 ns | - | - | 0.0212 | - | - | 224 B |
| GetRandomElementsFromSmallDataSet | 1,386.329 ns | 9.6764 ns | 9.0513 ns | - | - | 0.0896 | - | - | 944 B |
| GetRandomElementsFromMediumDataSet | 12,059.781 ns | 111.0186 ns | 98.4151 ns | - | - | 0.7782 | - | - | 8144 B |
| GetRandomElementsFromLargeDataSet | 17,467,272.141 ns | 349,145.9364 ns | 680,982.3344 ns | - | - | 562.5000 | 562.5000 | 562.5000 | 8000335 B |
Int32[] is supplied| Method | Mean | Error | StdDev | Completed Work Items | Lock Contentions | Gen0 | Gen1 | Gen2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| GetRandomElementFromSmallestDataSet | 19.88 ns | 0.275 ns | 0.229 ns | - | - | - | - | - | - |
| GetRandomElementFromSmallDataSet | 14.32 ns | 0.204 ns | 0.180 ns | - | - | - | - | - | - |
| GetRandomElementFromMediumDataSet | 12.40 ns | 0.259 ns | 0.242 ns | - | - | - | - | - | - |
| GetRandomElementFromLargeDataSet | 16.42 ns | 0.259 ns | 0.243 ns | - | - | - | - | - | - |
| GetRandomElementsFromSmallestDataSet | 155.18 ns | 0.643 ns | 0.537 ns | - | - | 0.0153 | - | - | 160 B |
| GetRandomElementsFromSmallDataSet | 1,367.44 ns | 6.136 ns | 5.739 ns | - | - | 0.0496 | - | - | 520 B |
| GetRandomElementsFromMediumDataSet | 12,231.07 ns | 61.322 ns | 54.361 ns | - | - | 0.3815 | - | - | 4120 B |
| GetRandomElementsFromLargeDataSet | 14,154,878.37 ns | 101,403.222 ns | 84,676.283 ns | - | - | 328.1250 | 328.1250 | 328.1250 | 4000230 B |
IUser
user.
Id - a GUID/UUID that allows for easy storage and retrieval of user information.Email - an individual's email address.Name - the name of the user.IsAuthenticated - indicates whether the user is authenticated.Key - the key associated with the user (integer based).ITenant
Id - a GUID/UUID that allows for easy storage and retrieval of tenant information.Code - The code associated with the tenant.Name - the name of the tenant.Key - the key associated with the tenant (integer based).IEntityKey
Id - a GUID/UUID that allows for easy storage and retrieval.CreatedAt - a timestamp marking the entity's creation.ITenant - The Tenant that entity is associated with.IUser - the originator/creator of the entity.IEntity
IEntityKey on an Entity.
IEntityKey the unique key associated with the entity.AND which combines two specifications and returns the combined result using the AND logical truth tableOR which combines two specifications and returns the combined result using the OR logical truth tableNOR which combines two specifications and returns the combined result using the NOR logical truth table (Bubble And)NAND which combines two specifications and returns the combined result using the NAND logical truth table (Bubble Or)NOT which inverts the logical truth table for the provided specification.| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 3 NuGet packages that depend on TheOmenDen.Shared:
| Package | Downloads |
|---|---|
|
TheOmenDen.Shared.Logging
A collection of logging utilities that are used throughout The Omen Den's applications. Also provides an eventtype enricher for Serilog |
|
|
TheOmenDen.Shared.Interfaces
This package contains the interfaces that can used for various implementations, and some of the models behind them for Tenancy and User based applications. |
|
|
TheOmenDen.Shared.Services
A collection of the service implementations used throughout the various apps that The Omen Den develops. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2023.11.27.49 | 1,642 | 11/27/2023 |
| 2023.3.25.112 | 4,307 | 3/25/2023 |
| 2023.3.17.2238 | 624 | 3/18/2023 |
| 2023.1.15.141 | 802 | 1/15/2023 |
| 2022.11.13.2149 | 1,492 | 11/14/2022 |
| 2022.10.8.41 | 3,568 | 10/8/2022 |
| 2022.9.19.1408 | 1,210 | 9/19/2022 |
| 2022.8.27.345 | 919 | 8/27/2022 |
| 2022.8.13.1752 | 755 | 8/13/2022 |
| 2022.7.26.331 | 1,173 | 7/26/2022 |
| 2022.7.19.110 | 835 | 7/19/2022 |
| 2022.7.13.1515 | 742 | 7/13/2022 |
| 2022.7.11.1017 | 716 | 7/11/2022 |
Update to .NET 8