Category: .NET
-
BlazorExtensionsAspire – integrate BlazorWebAssembly with WebAPI via Aspire–code
BlazorExtensionsAspire solves the problem of automatically injecting the URL of WebAPI into Blazor WebAssembly . The code for obtaining writes into appsettings.json of BlazorWebAssembly To use it add this to a Aspire AppHost project and then add this to a BlazorWebAssembly project and then inject Do not forget to add CORS to webAPI !
-
BlazorExtensionsAspire – integrate BlazorWebAssembly with WebAPI via Aspire–idea
Any WebAPI application needs an UI – and Blazor is a choice nowadays ( along other SPA , like Angular, React, Svelte … ) For integrating in ASPIRE ,there is a no simple task : Blazor should know the WebAPI url and use it to gather data. But the WebAPI URL could change – so…
-
RSCG – InlineComposition
name InlineComposition nuget https://www.nuget.org/packages/InlineComposition/ link https://github.com/BlackWhiteYoshi/InlineComposition author Black White Yoshi Mixin classes and interfaces together This is how you can use InlineComposition . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/InlineComposition
-
RSCG – Tortuga.Shipwright
name Tortuga.Shipwright nuget https://www.nuget.org/packages/Tortuga.Shipwright/ link https://github.com/TortugaResearch/Tortuga.Shipwright author Tortuga Research Generate mixin between classes This is how you can use Tortuga.Shipwright . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/Tortuga.Shipwright
-
RSCG – jos.enumeration
name jos.enumeration nuget https://www.nuget.org/packages/jos.enumeration/ link https://github.com/joseftw/jos.enumeration author Josef Ottosson Generating enum from static consts This is how you can use jos.enumeration . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/jos.enumeration
-
TestExtensionsAspire- part 2- execution
Now the code mans to create commands about running dotnet <test or run> in the current folder of the csproj test project. Things that needed to be solved: 1. Test Project as NuGet Package The main project (.csproj) , that will be referenced as a NuGet dependency, it’s not an Aspire project, so it doesn’t…
-
TestExtensionsAspire- part 1 – idea
I know that Aspire could be used to perform integration test. And this can be achieved by having a test project that references Aspire – see https://learn.microsoft.com/en-us/dotnet/aspire/testing/write-your-first-test?pivots=xunit . However, how about allowing your test project ( even unit test project ) to run under Aspire Host ? Of course, Aspire will reference the test –…
-
RSCG – Strings.ResourceGenerator
RSCG – Strings.ResourceGenerator name Strings.ResourceGenerator nuget https://www.nuget.org/packages/Strings.ResourceGenerator/ link https://github.com/biggik/Strings.ResourceGenerator author Birgir Kristmannsson Generating strongly typed string resources – with parameter and Localization This is how you can use Strings.ResourceGenerator . The code that you start with is The code that you will use is The code that is generated is Code…
-
RSCG – Figgle
RSCG – Figgle name Figgle nuget https://www.nuget.org/packages/Figgle.Generator/ link https://github.com/drewnoakes/figgle author Drew Noakes Generating ASCII art text for console applications This is how you can use Figgle . The code that you start with is The code that you will use is The code that is generated is Code and pdf at…
-
RSCG – SuperFluid
RSCG – SuperFluid name SuperFluid nuget https://www.nuget.org/packages/SuperFluid/ link https://github.com/hughesjs/SuperFluid author James Hughes Generate a state machine from a yaml file This is how you can use SuperFluid . The code that you start with is The code that you will use is The code that is generated is Code and pdf…