Sam July 9th, 2021 API versioning can help evolving our APIs without changing or breaking the existing API services. URL segment, request header, and query string are three ways to achieve API versioning in ASP.NET Core application. ASP.NET Core OData 8, built upon ASP.NET Core, has the built-in API versioning functionality via route URL prefix template. For instance, the following code configures a version template in the route URL prefix to achieve URL based API versioning: services.AddControllers(...
Strona głównaUżytkownik
Piotr Stapp | administrator
Learn how to build APIs in .NET with our Ultimate ASP.NET Core Web API! 🔥Check out our video course about BLAZOR WEBASSEMBLY! 🔥HomeWeb API Book 📙Blazor WASM Video Course 🔥GuidesASP.NET CoreASP.NET Core SeriesGraphQL ASP.NET CoreASP.NET Core MVC SeriesASP.NET Core MVC TestingEF Core SeriesHttpClient with ASP.NET CoreSecurityASP.NET Core Identity SeriesIdentityServer4, OAuth, OIDC SeriesAngular with ASP.NET Core IdentityBlazor WebAssemblyBest PracticesSOLID PrinciplesASP.NET Core Web API Best Practice...
Sztuka programowania 1226 dni, 7 godzin, 17 minut temu 99 źrodło rozwiń
On this page: If you've been following this blog and my Twitter feed, you know I've been going through a lengthy process of updating the Markdown Monster WPF desktop application from using an WebBrowser control based editor and preview interface to using the new WebView2 control. This new control provides a modern browser that use the Chromium engine which provides much better compatibility with modern Web Standards than the old Internet Explorer based WebBrowser control. The new control has strict r...
Sztuka programowania 1228 dni, 7 godzin, 19 minut temu 35 źrodło rozwiń
Rocket Mortgage Technology BlogRocket Mortgage Technology BlogRocket Mortgage TechnologyFollow·9 min read Measuring Performance in .NET Jason Bock, Developer Advocate, Rocket Mortgage As developers, we come across unique ways to implement algorithms that may seem intriguing, but their novelty must be challenged with performance analysis. In this article, I’ll discuss ways to determine if words are anagrams using prime numbers. I’ll compare this approach to other solutions, and I’ll use Benchmark.NET t...
8th July 20218th July 2021Steve Gordon.NETPart Two: Understanding the Overhead of a StringBuilder To continue exploring how the StringBuilder works, we’ll shift focus and study its logical design. Today, we’ll start by looking at how the type is designed and the overhead involved with creating and using StringBuilder instances. If you missed part one of this series, I explained why you may decide to use StringBuilders in your application code for more efficient string manipulation. Don’t worry if you mi...
Sztuka programowania 1228 dni, 7 godzin, 19 minut temu 54 źrodło rozwiń
Whilst I was working on migrating the WeatherTwentyOne app from Maui to Uno I noticed that the Maui application includes a number images as SVG files. However, in the XAML there are only ever references to PNG files. On closer inspection of the bin folder for the WinUI project I noticed that for each SVG … Continue reading “Image Resizetizer for WinUI and Uno Applications” Whilst I was working on migrating the WeatherTwentyOne app from Maui to Uno I noticed that the Maui application includes a number im...
One of the questions I frequently get asked by people who watch my Durable Functions Fundamentals Pluralsight course is whether you can use dependency injection with Durable Functions (as my demo app uses static methods). The answer is yes, and it's quite simple although there are a couple of considerations about logging that are worth pointing out. In this post I'll give a quick overview of the main steps, and you can get more details on the official docs site if you'd like to dive further into the top...
As the dotnet Maui team continue to churn out each preview, it’s great to see some of the showcase apps coming together. One of these is the WeatherTwentyOne app that David Ortinau has been working on. Whilst I’ve been doing a lot of work with the Uno platform recently, I haven’t been spending as time … Continue reading “Converting the WeatherTwentyOne app from dotnet Maui to Uno” As the dotnet Maui team continue to churn out each preview, it’s great to see some of the showcase apps coming together. One...
Mobile development 1232 dni, 6 godzin, 25 minut temu 19 źrodło rozwiń
5th July 20215th July 2021Steve Gordon.NETPart 1: Why do we need a StringBuilder and when should we use one? After becoming proficient in .NET and C#, developers are likely to learn that they should use a StringBuilder to optimise string manipulation and concatenation. This is not a hard and fast rule for all situations but is generally good advice if your code combines or modifies strings repeatedly, particularly if the number of modifications is unbounded and not known until runtime. In this post, I ...
Ultimate Guide to Machine Learning with Python - e-books bundle! Become Machine Learning Superhero TODAY! &##128293;FacebookTwitterInstagramLinkedInGitHomeBook 📙BlogContactSelect Page | .NET, C# | 0 commentsSubscribe and receive free guide - Ultimate Data Visualization Guide* indicates requiredEmail Address * C# has been around for a while. Since January 2002, to be more precise. As we wait for the 20th birthday of this popular programming language, we are expecting its new version as well. C# 10 ...
July 04, 2021 (~10 Minute Read) IDEMPOTENCYFAULT TOLERANCEDISTRIBUTED SYSTEMSAPI DESIGNASP.NET COREOPEN-SOURCE Contents IntroductionIdempotency in HTTP (Web)The IdempotentAPI LibraryHow IdempotentAPI WorksThe Source CodeIdempotentAPI NuGet packageStep 1: Register the Distributed Cache (as Persistent Storage)Step 2: Decorate Response Classes as SerializableStep 3: Set Controller Operations as IdempotentUsing the Idempotent Attribute on a Controller’s ClassUsing the Idempotent Attribute on a Controller’s...
Sztuka programowania 1234 dni, 3 godziny, 36 minut temu 36 źrodło rozwiń
Nik June 30th, 2021 With the release of Visual Studio 16.10 comes a new analysis engine for the Performance Profiler, with the .NET Object Allocation Tool being the first tool to be onboarded. This provides the tool with some new features and a significant perf boost. Give it a shot with your C# app and see what spurious allocations you can remove to speed up your app! The .NET Object Allocation Tool now has support for Source Link which lets the tool pull down source files when going to source. This ...
C sharp or B flat? Experiments in self-contained native executables in .NET - Scott Hanselman's Blog
aboutblogpodcastyoutubespeaking browse by category or dateC sharp or B flat? Experiments in self-contained native executables in .NETComment on this post [3]Posted in Open Source Sponsored By One of the best parts of the .NET ecosystem is the excitement around experimentation. Someone is always taking .NET to the next level, trying new things, pushing the envelope. Michal Strehovsky has an interesting experiment on his GitHub called "bflat." This is not a produc...
Sztuka programowania 1234 dni, 3 godziny, 36 minut temu 33 źrodło rozwiń
Lee P RichardsonRate me: Please Sign up or sign in to vote. 5.00/5 (7 votes)CPOL7 min readIn this post I'll quickly explain what asynchronous streams are, describe what real world problem they helped me solve, and show some common pitfalls just in case you're in a similar situation. My journey to solve a hard performance problem with a newish language feature: asynchronous streams. Explains what asynchrnous streams are, and shows a real world prob...
Sztuka programowania 1234 dni, 3 godziny, 36 minut temu 66 źrodło rozwiń
Recently, I had to convert an SVG file to PNG. I tried a few free online converters, but none of them were able to convert the image correctly. Indeed, they don't support custom fonts… Instead of wasting more time at searching for an existing tool, I opened Visual Studio and I made a quick application to convert my images!
In .NET there are multiple ways to check if a value is null. But all of them are not equivalent. Let's look at the different ways to check if an object is null:
Sztuka programowania 1238 dni, 6 godzin, 37 minut temu 99 źrodło rozwiń
Laurent April 15th, 2021 Hi! I’m Laurent Ellerbach. I’m a Principal Software Engineer Manager at Microsoft working for the Commercial Software Engineering team. My team and I are doing co-engineering with our largest customers helping them in their digital transformation and focussing on Azure. I’m more focussing on Manufacturing industry and I’ve been involved in IoT for a very long time. I’ve been a contributor to .NET IoT and quickly became one of the main contributors which drove me to work very cl...
content Videos Content Index Board Games Photography
The other day at work I ran into an attribute I hadn't heard about, the [Conditional] attribute. In this post I start by describing conditional compilation using pre-processor directives like #if, and then introduce the [Conditional] attribute, and describe how it differs to using #if.Conditional compilation with #if With the release of .NET Core 5 years ago (has it really been that long?!) the need to multi-target .NET libraries and applications became more prominent. As the early versions of .NET...
michielpost.nl Personal blog of Michiel PostcategoriesblockchainblazorauthorMichielpublishedcategoriesblazor Blazor WebAssembly apps can become pretty large (10+ MB), every Blazor app includes the dotnet runtime compatible with WebAssembly, and of course all of your app's dependencies. Microsoft is working on getting the download size as small as possible, with techniques like tree shaking. This means that unused code won't be included in the Release build. But there are also some things we can do ou...