• Friday Links 428

    4 Experts List Favorite New EF Core 5.0 Features — Visual Studio Magazine Const Visualizer – Visual Studio Marketplace Stack Trace Explorer – Visual Studio Marketplace Chaos Engineering tools comparison New C# Source Generator Samples | .NET Blog roslyn-sdk/samples/CSharp/SourceGenerators at master � dotnet/roslyn-sdk NuGet Multiplatform Library Projects (aka Nugetizer 3000) – Xamarin | Microsoft Docs…

  • RecordVisitors–history of urls–part 8

    Extending scope :why not record also the history  ? So – again,let the programmer choose what he wants to store https://record-visitors.readthedocs.io/en/latest/RecordVisitors/IRecordVisitorFunctions/methods/GetUrl/  and where to store : https://record-visitors.readthedocs.io/en/latest/RecordVisitors/IUsersRepository/methods/SaveHistory/ . Created also 2 new endpoints : /recordVisitors/GetUserId/{userName} /recordVisitors/UserHistory/{userId}/{dateFrom:datetime:regex(\d{{4}}-\d{{2}}-\d{{2}})}/{dateTo?} Make a default implementation of having the URL – does not start with api/,does not contain api . Make…

  • Record visitors- work on issues–part 7

    Now it is time to solve some issues  There were 12 issues written by me – you can see here: https://github.com/ignatandrei/RecordVisitors/issues?q=is%3Aissue+is%3Aclosed Between the most important: Improve readme.md with more links and explanations for potential programmer and contributors Write version in static constructor – to know about the version,if some issue occurs Added custom link  lastvisitors/minutes/{time:int}…

  • RecordVisitors – xml docs – part 6

    Now it is time to write technical documentation  – XML comments to the rescue – first,read the https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/ . Second,in order to minimize work,make the classes private / internal . See what I REALLY need to use the project – it remains some interfaces and extension methods. It was helpful putting warning as errors at…

  • RecordVisitors- NuGet–part 5

    Now it the moment to deploy to NuGet. First,we should have automatic build and deploy to NuGet with GitHub Actions.  This is pretty simple –  the yml becomes     – name: Pack run: |         cd src/RecordVisitors/         # dotnet pwsh setVersion.ps1         cd RecordVisitors         dotnet pack -o nugetPackages     – name: ‘Upload Artifact’…

  • Friday Links 427

    Top 10 Must-Have Tools for .NET Developers | The Startup HeidiSQL/HeidiSQL: A lightweight client for managing MariaDB,MySQL,SQL Server,PostgreSQL and SQLite,written in Delphi Static Types Considered Helpful � RealMensch dasMulli/data-builder-generator: Code generator to easily create data builder patterns for your model classes An AOP Example that Makes MemoryCache Easier to Use – CodeProject The Biggest Lie…

  • RecordVisitors–CI –part 4

    It will be perfect for any project to have a CI to improve feedback. GitHub actions is helpful here  – just put a gitlab.yml. After few iterations,mine looks like this name: BuildAndTest on: push: branches: [ main ]   pull_request:     branches: [ main ] jobs:   build:     #runs-on: ubuntu-latest     runs-on: windows-2019    …

  • RecordVisitors–code coverage–part 3

    Now I have to do some code coverage . The easy way is to test the web application – doing an integration test. Use this as a starting point: https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-5.0 I have 2 kind of tests: HappyPath  -when all is working ok – and  TestErrors  – when it is not. The code for all working…

  • RecordVisitors–code–part 2

    Now,after the idea is complete,let’s see the code. ( Yes,I know that TDD will be better … ) For the implementation : 1. Problems with the manual test-  how to create a Fake User – see below the solution. 2. Problems of how to let user define his own data You can find the original…

  • RecordVisitors-idea–part1

    It will be interesting to have a middleware of .NET Core that can record the name of the visitors in order to see what are the latest visitors of your site . What will be the uses ? See when the people has visiting your site See the latest visitors If you have a site…

I am ok , you are ok