Category: .NET Core

  • NetCoreUsefullEndpoints–part 6–passing to .NET 7

    So  .NET 7 has appeared and I decided to pass NetCoreUsefullEndpoints to .NET 7 . Also,for RateLimiter,I have considered that is good to know if the request is local or remote … so I decided to add connection ( remote IP,local IP,and more details) to the nuget package. So I have created for .NET 6…

  • [Nuget] dotnet-run-script

    I found this awesome package – https://github.com/xt0rted/dotnet-run-script . It is good to make macros in global.json,then execute in a CICD scenario. For example,NetCoreUsefullEndpoints used this in yaml ( pretty standard ) # – name: Restore dependencies #   run: | #     cd src #     cd UsefullEndpoints #     dotnet tool restore #     dotnet pwsh readme.ps1 #     dotnet…

  • Friday links 499

    Patterns.dev – Modern Web App Design Patterns 6 Useful Angular Decorators. Useful Decorators to use in your… | by Chidume Nnamdi | Bits and Pieces The disproportionate influence of early tech decisions — brandur.org https://twitter.com/mariusbancila/status/1558748349276344322 Best 50 productivity hacks chosen by the internet – 50 Hacks vis.js Developing Error Handling Strategies for Asynchronous Messaging –…

  • TILT- Telemetry/Observability for FE and BE-part 27

    Now it is the case to monitor the calls how they arrive from Web ( frontend ) and continue to the backend. Fortunately,it is very simple in Application Insights There are 2 relevant links for Angular https://devblogs.microsoft.com/premier-developer/angular-how-to-add-application-insights-to-an-angular-spa/ https://learn.microsoft.com/en-us/azure/azure-monitor/app/javascript-angular-plugin https://learn.microsoft.com/en-us/azure/azure-monitor/app/javascript?tabs=snippet#enable-distributed-tracing The code is relative well written and appears ok. The fact that the AppInsights SDK is…

  • TILT-Count TILTS for each user-part 27

    I just wanted to know for each user how many tilts have each user/ url . As a Business Requirement,it is not a big deal. Let’s see what it means for a programmer . 1. Add functions to the backend to calculate the count 2. Add to the frontend call to the function 3. Figure…

  • TILT-Passing to IAsyncEnumerable instead of array–part 25

    When tansmitting an array of data to an application,usually the application transfers all data – or in chunks – if it is a large numbers ( page 1,page 2 and so on). Both are having drawbacks all data from start means that the time to see the data increases with the number of data paging…

  • TILT–Details for programmers- part 24

    I have organized the About in order to show more details. See https://tiltwebapp.azurewebsites.net/AngTilt/ Zero and the most important,the date when the CI was done First,Licences – .NET Core and Angular . Usefull to know. Second,Info about Versions – Repo and history – UI and JSON – mostly for making managers happy . Third,Automation – Swagger…

  • Licences for .NET Core and Angular–part 24

    I was curious about the licences that .NET Core and Angulare are using. It was interesting to find that ng build (https://angular.io/cli/build) has a –extract-licenses flag- and creates 3rdpartylicenses.txt For .Net Core I have found https://github.com/tomchavakis/nuget-license that creates a file with dotnet dotnet-project-licenses -i NetTilt\NetTilt.WebAPI -o –outfile NetTilt\NetTilt.WebAPI\wwwroot\netcorelicences.txt -t And I copy those,in the CI,to…

  • TILT- Docker with Ductus.FluentDocker–part 23

    I have already tests with Sqlite – however,it will be better to try tests with a real SqlServer . One of the way to have a sql server is to have docker – but how to start docker with sql server any time ? One of answers is Ductus.FluentDocker – https://www.nuget.org/packages/Ductus.FluentDocker – and this is…

  • TILT–Some improvements-part 23

    I wanted to have a share on TILTs,instead of a clipboard copy. Discovered that browser navigator has a native share – https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share . Implementation very simple ( not so good,) private share(str:string): boolean{ if (‘share’ in navigator) { navigator .share({ title: ‘TILT!’, text: str, url: environment.url + ‘AngTilt/tilt/public/’+this.profileForm.controls[‘url’].value }) .then(() => { console.log(‘Callback after sharing’);…