Home About

All posts tagged with ".Net core"

.Net is the cross platform implementation of the .Net framework. Basically making .Net available outside of the windows platform and Microsoft products.

Page 1 of 3 Older Posts →

Asp.net core - How to inject a dependency into a controller using standard dependency injection

Asp.net core has built in dependency injection. If you have a standard Asp.net core project you will find the method ConfigureServices in your startup. »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, ASP.NET, .Net core 20 January 2021

Asp.net core - What is the difference between AddTransient, AddSingleton and AddScoped?

When you wish to use dependency injection in Asp.net core you have three choices for the lifetime scope of your dependency. The three choices are »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on ASP.NET, .Net core, Dependency injection 18 January 2021

Asp.net core - how to set up a controller endpoint to receive XML instead of JSON

In a previous post I showed how you can send XML using the HttpClient in asp.net core, using the following code snippet: var httpClient = new »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on ASP.NET, .Net core, .Net, Webapi, Web development, XML 28 November 2020

.Net - A great book for learning the new .Net 5

So far there are not many books for .Net 5, as it was so recently announced. What I have found from ratings is that the following »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Book review, Books, C#, .Net core, .Net 5 12 November 2020

What is new in .Net 5? and how is it different from .Net core?

This November (2020) we are getting ourselves a new version of .Net called ".Net 5". We are currently at .Net Framework 4.8 and »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on .Net, C#, .Net core 22 October 2020

Asp.net websockets - sending messages back and forth between client and server

My previous post on websockets on how to stream messages to a client has become quite popular. I felt that I left this halfway when I »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, Websocket, ASP.NET, .Net core, .Net 14 March 2020

Asp.net core - how to change the launch URL when working with asp.net projects

If you wish to change the URL that your browser is directed to, when starting your new asp.net project you need to change your launch »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Visual Studio, ASP.NET, .Net core 07 March 2020

Asp.net core - How to make a controller action receive text/plain content as a string - which also works in swagger

I have recently had to make an endpoint in asp.net core that receives text/plain content - or raw text as you may call it. »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Swagger, C#, .Net core 29 February 2020

C# - How to make a list of tuples with named values

I found it hard to find a webpage showing a simplistic way to create named value tuples in a list. Most of the examples I could »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Valuetuple, C#, .Net core, .Net 22 February 2020

Asp.net core - how to create a controller action with optional parameters

In this post I show you how to use optional parameters in asp.net core. It is actually quite simple as it works just the same »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on ASP.NET, .Net core, .Net 15 February 2020
Page 1 of 3 Older Posts →
Rss
Twitter
LinkedIn
profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2022 Cookie policy