• DIForFunctions–what it does- part 4

    You can find a demo at https://github.com/ignatandrei/FunctionsDI/tree/main/src/FunctionsWithDI  – see TestCOnsoleAPP. But let’s write here also Generate (constructor) and functions calls similar with ASP.NET Core WebAPI ( [FromServices] will be provided by DI ) Also,verifies for null . Usage Reference into the csproj <ItemGroup> <PackageReference Include=”RSCG_FunctionsWithDI” Version=”2022.6.19.1605″ ReferenceOutputAssembly=”false” OutputItemType=”Analyzer” /> <PackageReference Include=”RSCG_FunctionsWithDI_Base” Version=”2022.6.19.1605″ /> </ItemGroup> Then…

  • DIForFunctions–NuGet- part3

    The important part now is to make public – that means NuGet and documentation,The NuGet is pretty simple – with dotnet pack and with GitHub Actions – in order to do automatically every time I modify the main. For now,this is the action name: .NET on:   push:     branches: [ “main” ]   pull_request:…

  • DI for Functions- work–part 2

    Let’s begin with tests  – we need to have a class with multiple functions that have multiple [FromServices} parameter. Like public bool TestMyFunc1([FromServices] TestDI1 t1,[FromServices] TestDI2 t2,int x,int y)         {             return true;         }         public bool TestMyFunc2([FromServices] TestDI1 t12,  int x,int y)         {             return true;         } // more others Because there are multiple functions,I need to…

  • DI for Functions–idea – part 1

    Looking at ASP.NET Core,there is a wonderful feature that  gives you thinking :  you can put in any action for a controller FromServices argument and the framework will complete from,well,services: : public ActionResult Test([FromServices] MyFunction What if  you can do the same with any function from any class ? It will be good,but … how …

  • Friday links 479

    Eager refresh of values for AsyncExpiringLazy | StrathWeb. A free flowing web tech monologue. .NET Core HttpClient Best Practices | by bytedev | Jun,2021 | Medium How to create a list of non upgradable software for winget • Codewrecks Publishing to winget with MSIX Hero – Marcin Otorowski HttpClientCodeGenerator/HttpClientCodeGeneratorSyntaxReceiver.cs at 25e03c6f0453df082f377b9fa79216afb1884592 · Jalalx/HttpClientCodeGenerator Use IHttpClientFactory…

  • [ADCES] 14 iunie 2022,ora 19:30 – ASM + GM

    Pe   14 iunie 2022,ora 19:30,  va fi un nou meetup ADCES despre “OldSchool – Programare in ASM si Win3.11” & “De la programator la Group Manager” Details Prezentare 1: OldSchool – Programare in ASM si Win3.11Descriere; Pregatiti-va (sau amintiti-va ) de cum se facea programarea in Windows 3.11 in ASMPrezentator: MIhai Florescu,https://www.linkedin.com/in/mihai-f-6208724/Prezentare 2: De la…

  • Friday links 478

    10 Common Software Architectural Patterns in a nutshell | by Vijini Mallawaarachchi | Towards Data Science microsoft/winget-pkgs: The Microsoft community Windows Package Manager manifest repository Navigating the 8 fallacies of distributed computing | Ably Blog: Data in Motion Patterns of Distributed Systems ExpressionPowerTools/quickstart.md at master · JeremyLikness/ExpressionPowerTools How Directorybrowsermiddleware middleware renders the directory structure RabbitMQ…

  • app.Use vs Middleware–and scoped services

    When you want to use a fast middleware,you can use ( pun intended) app.Use( However,if you want to use some of scoped services,e.g. app.Use(async (context,next) => {     var st= app.Services.GetRequiredService<IServerTiming>(); //code } then it gives an error Cannot resolve scoped service  from root provider For this you should create  a scope: app.Use(async (context,next) => {    …

  • Friday links 477

    The pain points of C# source generators – Turnerj (aka. James Turner) github/codeql-action: Actions for running CodeQL analysis It haunts us | CommitStrip Don’t Write Code for a Startup. Confessions of a serial startup… | by Chris The Data Guy | Jun,2021 | Better Programming migueldeicaza/gui.cs: Console-based user interface toolkit for .NET applications. HTTP Range…

  • Friday links 476

    PACELC theorem – Wikipedia 5 Rules of Coaching | Liz Keogh,lunivore dotnet repl – Scott Hanselman’s Blog The Hells Every Developer Experiences – DEV Community Running .NET Core Apps on a Framework other than Compiled Version? – Rick Strahl’s Web Log runtime/framework-version-resolution.md at main · dotnet/runtime Using Roslyn for Compiling Code into Separate Net Modules…

I am ok , you are ok