Showing all posts tagged: '.NET Core'

A 20-post collection

Create sample data for Cosmos DB with .NET Core

Aren't you bored of stockmarket ticker and ToDo sample apps and data? Do you long for some more realistic data to build great app samples around it? Well, guess what? Problem solved? How do you feel about Volcanos? If you love them (and fear them) like I do, then this is the blog for you. below I'll show you how to create a small console app that generates sample data and then populates a Cosmos DB database with it. PrerequisitesSince Cosmos DB is an Azure service, you'll need and Azure Subscription. Grab one for FREE here! For this example we …[read more]



Create a .NET Core Deamon app that calls MSGraph with a certificate

A couple of days ago I blogged about pulling OneDrive data with MS Graph in .NET Core. I wrote all the code in a console app because it was the simplest way to get me what I needed. Mind you, a console app is not the best way when it comes to creating user interactive apps but it's convenient. However, convenience comes with a price: I ended up writing a console app that needs user interaction for authenticating the app. So what is the right way to do this? How can we create a headless app/daemon that can still …[read more]



.NETConf 2018 - From developers for developers

.NETConf, the virtual Microsoft conference on all this .NET, cloud and mobile is back for another year and it's only a couple of weeks away! This year, the conference is scheduled to run for 3 days but the last day comes with a twist. We plan on having local developers and MVPs from around the world broadcasting live for 24hrs. This is a totally new format and will even feature some non-English talks! We have an excellent line-up of speakers covering everything .NET from local desktop development to Azure Serverless. The goal of the conference is to showcase new features, …[read more]


Working with the latest .NET Core version in VSTS

Working with the latest and greatest is always exciting. As developers, we tend to download new software and SDKs in order to try it and, in some cases, benefit from early fixes or early access to new features. .NET Core 2.1 which was announced at Build is one such example. The first thing I did after the conference announcement was to go on my machine and download it so I could take it for a spin. However, as developers, we're not restricted to our machines. Eventually, the code is pushed into source control and from there the CI/CD …[read more]


Serverless Text Moderation with Azure Functions and the Azure Cognitive Services

I love how Microsoft and Azure is making developers' lives so much easier. Consider the title of this blog post. Now try to think how you would solve this problem 2 or 3 years ago. How much code, infrastructure and data would have to be produced in order to generate a text moderation service that scales, performs and works reliably every single time! Fast forward to today and solving the exact same problem takes no less than 100 lines of code by using the tools that MS has made available to our disposal. The heavy lifting is done by the …[read more]


Enforcing HTTPS only traffic with ASP.NET Core and Kestrel

In the early days of ASP.NET Core, [Kestrel](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?tabs=aspnetcore2x" target="_blank) (the lightweight, open source web server) was fairly basic. And this was totally intentional! Kestrel provides a mechanism to spin up and run ASP.NET Core websites and APIs fast and efficiently with as little overhead as possible. This, combined with the other ASP.NET Core improvements (90% smaller HTTP requests etc) have contributed to ASP.NET Core's speed. Kestrel was great at its job but in some cases proved to be very basic. It's …[read more]