-
Interceptor in Angular–loader and service
Video at https://www.youtube.com/watch?v=ajosuyhcKV4 I need to inform the user when the application is loading data – and when it is not loading anymore. Usually,the data comes from a backend via an HTTP call– and will be some timeout before it becomes available. So – simple – just intercept this and then show some spinning to the…
-
Friday Links 371
dotnet-framework-docker-samples/dotnetapp-4.6.2 at master · Microsoft/dotnet-framework-docker-samples TSM – Dan Sabadis 5 Ways to Get Started with Machine Learning — SitePoint Generate C# Client API for ASP.NET Web API – CodeProject zijianhuang/webapiclientgen: Strongly Typed Client API Generators generate strongly typed client API in C# codes and TypeScript codes for ASP.NET Web API TypeScript CodeDom · zijianhuang/webapiclientgen Wiki…
-
Friday Links 370
A flexible charting library for .NET – CodeProject Technical Foundations of Informatics Aggregation with User Preference Data — MongoDB Manual 3.0 Logging MediatR Requests – CodeOpinion What is AI? Not even the experts agree on the answer — Quartz Using QuaggaJS in MVC.NET – CodeProject .NET Core DLL Hell Is Here. Can .NET Core 2.0…
-
Passing a WebAPI application from .NET Core 2 to .NET Core 3 in 5 +1 (EF) steps
Simple steps: 1. Modiffy in the .csproj <TargetFramework>netcoreapp2.0</TargetFramework> to <TargetFramework>netcoreapp3.1</TargetFramework> 2.Delete <PackageReference Include=”Microsoft.AspNetCore.All” Version=”2.0.8″ /> 3. Modify public static IWebHost BuildWebHost(string[] args) =>public static IHostBuilder CreateHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args)Host.CreateDefaultBuilder(args) .UseStartup<Startup>() .ConfigureWebHostDefaults(webBuilder => .Build(); to public static IHostBuilder CreateHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args)Host.CreateDefaultBuilder(args) .UseStartup<Startup>() .ConfigureWebHostDefaults(webBuilder => .Build(); { webBuilder.UseStartup<Startup>(); }); 3. Modify BuildWebHost(args).Run(); to CreateHostBuilder(args).Build().Run(); 4. Modify…
-
Zip the whole ASP.NET Core application
I realized that I should have somehow let the user play with the application from his PC. How can I do that,if the application is on some site ? Answer: download the whole site as a zip file. It should be relatively easy for the user– so an endpoint routing should be used – something…
-
Friday Links 369
11 – Creating Node.js modules | npm Documentation About Blockly Games Create Case Studies to Impress Potential Clients adamsitnik/awesome-dot-net-performance: A curated list of awesome .NET Performance books,courses,trainings,conference talks,blogs and most inspiring open source contributors. Inspired by awesome-… stuff. Spreads/Spreads: Series and Panels for Real-time and Exploratory Analysis of Data Streams Library patterns: Why frameworks are…
-
Retarder–Fixed and Random strategy and Tests-part 4
Now I want to make a second strategy : the random strategy between a min and a max value. This is only to minimize the impact on the extension that uses the Random – it is good to be hidden inside. For Random Strategy it is better to re-use the Fixed Strategy – and this…
-
Retarder – Making a strategy to wait–part 3
Now I want to make the await configurable. To remind,first is just a random delay ( or static delay). The others are Delay execution of some endpoints,based on how frequent are their uses Delay execution based on headers / query string / routes Delay execution based on client IP Delay execution based on the response…
-
Retarder- reorganizing the project to easy use- part 2
Now it is the moment to start reorganizing the project to be easy to use by other programmers. I want,instead of registering the services manually,to can use .AddRetarder and .UseRetarder. So I create a new project,NetCoreRetarderCore.csproj,and move there the RetarderMiddleware . The only new thing is the extension class RetarderExtensions This let’s me…
-
Retarder- idea and POC–part 1
I was thinking about a new project in .NET Core – Retarder ( Delayer seems to be better,but I digress ). What about a middleware in .NET Core,that delays execution of any request with 1 second ( or something between 1 millisecond and 1 second )? That way,if someone wants to improve the project,just remove…
I am ok , you are ok