Category: .NET Core

  • Db2Code- part 4- Architectural Changes for FrontEnd

    Now comes the frontend . There are several options – Blazor,Angular,React,…. . The main problem is – how to generate JavaScript / TypeScript file where there is not .csproj available ? ( Yes,it is .esproj for javascript integration – however,you cannot add NuGet packages to it ) So the solution is to have another project…

  • Db2Code-part 3- deploy

    Now how to let other developers to modify the connection string from a template? Easy said than done  – create a template for this. This is easier to speak about than to do .  So any project can be transformed into template  – but what about a solution ? Anyway – the starting point is…

  • Db2Code–part 2- architecture

    What we will build you can see here : Each class will have it is own CodeTemplates\EFCore  templates from which will generate the code. Let’s start with ExampleModels : Here will be the class definitions . From the table defintion,the DB2Code will generate 1. A definition of a interface with table columns as properties 2. A…

  • Db2Code–part 1–idea

    From the second year that I have started programming,I find tedious to replicate the tables structure to code and to generate classes and SQL . I started asking questions  – and no one has ever envisaged near me an ORM ( it was not a definition then ). I have made my own ORM  –…

  • SRE with .NET

    I have found https://oschvr.com/posts/what-id-like-as-sre/  and I trying to answer from the .NET Core application . How can I check the health of the service ? Simple : Use https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks How can I safely and gracefully restart the service Simple : Use https://www.nuget.org/packages/NetCoreUsefullEndpoints#readme-body-tab How and why would the service fail ? Partial answer : same with…

  • NetCoreUsefullEndpoints-part 10- adding LongRunningTasks

    In the Nuget NetCoreUsefullEndpoints I have already an  endpoint to shutdown  –  see http://msprogrammer.serviciipeweb.ro/2023/02/20/netcoreusefullendpoints-part-9-adding-endpoints-for-shutdown/ . However,this means that there are no ( or some … )  long running operations that are running … How to identify those ? For the starting point,I was thinking at something simple,like an IDisposable that knows when the Long Running operation…

  • NetCoreUsefullEndpoints-part 9- adding endpoints for shutdown

    In my NuGet NetCoreUsefullEndpoints package  I want to can shutdown the application . Could be hard way,like calling Environment.Exit or the easy way,like calling a cancellation token. Also,what should happen with all the requests that are coming ? ( And I do not want to mention long running tasks – I do not found a…

  • [ADCES]React – first steps(again) and SRE and .NET

    Presentation 1: React( first steps) – againPresenter: Andrei Ignat,http://msprogrammer.serviciipeweb.ro/Descriere : O sa fie atinse urmatoarele concepte prin exemple practice: 1. React ca librarie,nu ca framework2. Create-react-app – cu typescript si modificarile care trebuie aduse3. Componente si Utilizarea de Hooks4. Comunicarea intre componente de React – de la parinte la copil si intre copii diferiti cu…

  • NetCoreUsefullEndpoints-part 8- adding start date

    In my NuGet NetCoreUsefullEndpoints package  I have had already registered the actual date as var rh = route.MapGet(“api/usefull/dateUTC”,(HttpContext httpContext) =>            {                return Results.Ok(DateTime.UtcNow);            }); Now I want to register also the start date – the date where the application has been started. 1. How to do this  ? 2. What will be the route ? For…

  • Nuget packages and Github repositories

    You can see the Github repositories that you have worked  last year by going to https://docs.github.com/en/graphql/overview/explorer and entering query ContributionGraph {   user(login: “ignatandrei”) {     contributionsCollection(       from: “2022-01-01T00:00:00+00:00”       to: “2022-12-31T00:00:00+00:00”     ) {       commitContributionsByRepository(maxRepositories:100){         repository{           nameWithOwner           url           updatedAt         }       }           }   } } Mine are ignatandrei/TILT ignatandrei/BlocklyAutomation ignatandrei/QueryViewer ignatandrei/RSCG_AMS ignatandrei/rxDemo ignatandrei/NetCoreUsefullEndpoints ignatandrei/Presentations ignatandrei/NETCoreBlockly ignatandrei/FunctionsDI ignatandrei/GeneratorOfHelp ignatandrei/MicroservicesPortChooser…