dotNET Weekly
Add a link
LoginRegister
PrevOctober 2020Next
WSMTWTFS
4027282930123
4145678910
4211121314151617
4318192021222324
4425262728293031

Want to receive every Tuesday the best .NET links?

Once subscribed you can login, submit a link and receive the weekly newsletter.

Join more than 4847 .NET professionals!

4 Ways to Handle Test Data for Your End-to-End Tests

by bill-s, 2020-10-19T15:46:20.519Z

One of the most common problems when running automated end-to-end tests for a web application is how to handle test data. End-to-end tests often create, update, and delete all kinds of information as it goes through your test cases in the application. Inevitably, you'll run into problems because previous test runs leave behind a trail of stale data that may interfere with your current test execution.

testing

Async code smells and how to track them down with analyzers - Part II

by bill-s, 2020-10-22T05:19:03.722Z

This blog post continues the series which is a guide through the code analyzers available on the market and their possibilities. I’m trying to help you answer the question: “Which analyzer package should I use and how to configure it to avoid problems related to async/await?". In the previous episode, I presented the first seven most common code smells related to asynchronous programming. Today, I present the next seven traps from this area. Lucky you, they can be easily avoided with an appropriate analyzer - for every issue, I provide entries for .editorconfig that configure analyzers that can detect it. Links to NuGet packages, as well as a complete list of analyzers’ rules, can be found in the previous article.

.net

Best practices for defending Azure Virtual Machines

by bill-s, 2020-10-23T00:33:21.579Z

One of the things that our Detection and Response Team (DART) and Customer Service and Support (CSS) security teams see frequently during an investigation of customer incidents are attacks on virtual machines from the internet.

azure

Blazor Gamedev – part 11: improved assets loading

by mizrael, 2020-10-19T02:01:00.434Z

Hi All! Welcome back to part 11 of our Blazor 2d Gamedev series. Today we’re going to refactor and improve the code responsible of loading assets. Our goal is to have a centralized asset loading mechanism and avoid the hassle of having to reference all our assets in a Blazor page or component.

.net-coreasp.net-coreblazor

Choose a .NET Game Engine

by bill-s, 2020-10-22T05:19:39.137Z

Developing games is multi-disciplined compared to developing business apps and services. Games need design skills spanning UI, audio, gameplay, and art direction. It also requires engineering skills for graphics, gameplay, audio, cloud services, and develops. Sometimes you need to get low level and play around with hardware registries in assembly to optimize performance for a specific device. Do you need to build all those layers yourself when making a game, or is there a better way? Of course, there is a better way. The .NET ecosystem offers many choices for folks like you who want to make games, but do not want to build everything from scratch. In my previous post, I showcased the diverse .NET game development landscape. In this post I will showcase some of the .NET game engines out there, and will help you choose which game engine is right for you.

.net

Dynamically invoking a generic method with Reflection in .NET C#

by bill-s, 2020-10-19T15:45:27.580Z

In this video, we learn how about dynamically invoking a generic method with reflection in .NET C#. When using a generic method, the generic argument (often referred to as `T`) must be provided as a known type at compile time. However, sometimes you may have a scenario where you must call a generic method using a type that it not known until run time. This can be problematic and usually results in using a large number of if/else statements.

c#

How to render a dynamic Component with Blazor

by mizrael, 2020-10-21T14:59:29.880Z

Hi All! Today we’re going to see a simple technique to render a dynamic Component with Blazor. Suppose you want to create a generic Component to handle lists.

.net-coreasp.net-coreblazor

https://codemag.com/Article/2009071/Prototyping-with-Microsoft-Maquette-A-New-Virtual-Reality-Tool

by bill-s, 2020-10-22T05:18:40.653Z

In this article, we're going to talk about Microsoft Maquette (see https://www.maquette.ms). It's a spatial prototyping tool aimed to help users to mock-up virtual reality (VR) and augmented reality (AR) experiences very fast. This tool is still evolving and is currently in beta.

.net

Introducing C# 9: Attributes on local functions

by anthonygiretti, 2020-10-19T01:01:24.728Z

Well. It has been a while since I wanted to write this post but I couldn’t find any relevant code example to illustrate it. As you might have guessed C# 9 now allows attributes on local functions (as well as parameter attributes of local functions). To illustrate this I will show you how to use the Conditional attribute to perform conditional local function executions, for example, depending on the environment in which we are running our program. Applying it to local functions can be interesting in this case, however I admit that for the moment it is the only relevant example but it does not matter it is not necessarily the functionality of C# 9 either. more popular now. Finally we will compare with the C# 9 forward to finish our example.

c#

Load Balancing on Azure - An Overview

by bill-s, 2020-10-23T00:33:48.632Z

‘Load Balancing’ is here the distribution (e.g. web requests) based on defined criteria (e.g. user location, resource utilization or round robin) to achieve a goal, e.g. avoid overloading or in case of a disaster to increase availability by automatically failing over to a redundant component. Please also look at the decision tree for when to use what. We will start with the regional services followed by the global services.

azure

Introducing C# 9: Static anonymous functions

by anthonygiretti, 2020-10-21T01:54:22.575Z

C# 9 brings an important improvement to anonymous functions by allowing the modifier static on them and we now have static anonymous functions ! Why Microsoft brought this feature ? Because allocation matters ! Microsoft explains here that lambda are not cost less (https://devblogs.microsoft.com/premier-developer/dissecting-the-local-functions-in-c-7/) :

c#

Master C# 9 Webinar

by andrea.angella, 2020-10-23T20:29:17.713Z

Deep dive into all the latest features introduced in C# 9 and .NET 5.

c#

Rest vs gRPC – performance benchmark in .Net Core 3.1

by rogaliusz, 2020-10-19T20:23:41.560Z

- gRPC CodeFirst approach, - The performance benchmark for gRPC vs REST communication in .Net core 3.1, - How many does cost to open gRPC channel & why is worth to scope it like HttpClient.

.net-core

Using Azure Identity with Azure SQL, Graph, and Entity Framework

by bill-s, 2020-10-19T15:45:02.938Z

My name is Mickaël Derriey and I work at Telstra Purple, the largest IT consultancy in Australia. I’m part of an internal team where my main focus is to support .NET applications we developed in-house, most of which are hosted in Azure and integrate with a variety of workloads like Azure SQL, Blob Storage, or the Microsoft Graph API.

azure

Using encrypted access tokens in Azure with Microsoft.Identity.Web and Azure App registrations

by bill-s, 2020-10-23T01:19:04.911Z

This post shows how to use encrypted access tokens with Azure AD App registrations using Microsoft.Identity.Web. By using encrypted access tokens, only applications with access to the private key can decrypt the tokens. When using encrypted tokens, you can prevent access tokens data being used or read by such tools as https://jwt.ms or https://jwt.io and prevent the payload claims being read.

azure

NewslettersAboutPrivacy Policy