Category: .NET Core
-
Dotnet diagnostics / open telemetry on CI in 6 simple steps
Prerequisites : Having Jaeger / Zipkin for visualization . The easy way for installing Jaeger is to have Jaeger all in one ( either via Docker,either run on PC) Step 1: Modify the csproj to add this Optional : To see the RSCG files,add also Step 2: 2.1 If ASP.NET Core app,add the following…
-
Open Tracing instrumentation for running process
Open tracing allows you to trace calls between (micro)services . It has also calls for HTTP and Sql. For a ASP.NET Core application the code is at follows ( for exporting at Jaeger,for example): This code was made with <PackageReference Include=”OpenTelemetry” Version=”1.1.0-beta1″ /> <PackageReference Include=”OpenTelemetry.Instrumentation.AspNetCore” Version=”1.0.0-rc3″ /> <PackageReference Include=”OpenTelemetry.Exporter.Jaeger” Version=”1.1.0-beta1″ /> <PackageReference Include=”OpenTelemetry.Extensions.Hosting” Version=”1.0.0-rc3″ />…
-
What I should return from WebAPI ?
There are several approaches when returning code from WebAPI . Let’s frame the problem: say we have a Person controller with 2 actions: – a GET {id} – that retrieves the Person with id – a POST {Peron} – that tries to verify the validity of the Person and then saves to database. We…
-
RSCG- the book
And now the book! If you liked the examples presented,you can support me by buying the book from https://amzn.to/3d4gRgy . Again,it is just for supporting me – you can find the whole examples at https://github.com/ignatandrei/RSCG_Examples
-
RSCG- part 16 – Many Others
There are more RSCG that you could see – here is a list that you may want to look at: AutoEmbed https://github.com/chsienki/AutoEmbed Cloneable https://github.com/mostmand/Cloneable fonderie https://github.com/jeromelaban/fonderie Generators.Blazor https://github.com/excubo-ag/Generators.Blazor Generators.Grouping https://github.com/excubo-ag/Generators.Grouping JsonMergePatch https://github.com/ladeak/JsonMergePatch MemoizeSourceGenerator https://github.com/Zoxive/MemoizeSourceGenerator MiniRazor https://github.com/Tyrrrz/MiniRazor/ MockGen https://github.com/thomas-girotto/MockGen ProxyGen https://github.com/Sholtee/ProxyGen Rocks https://github.com/JasonBock/Rocks RoslynWeave https://github.com/Jishun/RoslynWeave SmallSharp https://github.com/devlooped/SmallSharp StaticProxyGenerator https://github.com/robertturner/StaticProxyGenerator ValueChangedGenerator https://github.com/ufcpp/ValueChangedGenerator Web-Anchor https://github.com/mattiasnordqvist/Web-Anchor WrapperValueObject https://github.com/martinothamar/WrapperValueObject
-
RSCG- part 15 – Expression Generator
name Property Expression Generator nuget https://www.nuget.org/packages/AOPMethodsCommon/ https://www.nuget.org/packages/AOPMethodsGenerator/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate code to add function to be used with Entity Framework to search for any property of a class The code that you start with is The code that you will use is The code that is…
-
RSCG- part 14 – DP_Decorator
name AutoInterface nuget https://www.nuget.org/packages/BeaKona.AutoInterfaceGenerator link https://github.com/beakona/AutoInterface author beakona Implement the Design Pattern Decorator. Based on template – you can modify the source code generated The code that you start with is The code that you will use is The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/DP_Decorator
-
RSCG- part 13 – IFormattable
name IFormattable nuget https://www.nuget.org/packages/AOPMethodsCommon/ https://www.nuget.org/packages/AOPMethodsGenerator/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate code to add IFormattable to any class,based on the properties of the class The code that you start with is The code that you will use is The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/IFormattable
-
RSCG – Curry – Partial function – part 12
name PartiallyApplied nuget https://www.nuget.org/packages/PartiallyApplied/ link https://github.com/JasonBock/PartiallyApplied author Andrei Ignat This will generate curry for your functions The code that you start with is The code that you will use is The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/PartiallyFunction
-
RSCG- Method Decorator – part 11
name Method decorator nuget https://www.nuget.org/packages/AOPMethodsCommon/ https://www.nuget.org/packages/AOPMethodsGenerator/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate code to decorate methods with anything you want ( stopwatch,logging,authorization…) The code that you start with is The code that you will use is The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/MethodDecorator