Developer Support

Services for Microsoft Premier and Unified Support Customers

Accessing a .NET Bot’s State via Dependency Injection

The .NET BotBuilder SDK has deprecated the StateClient class, leaving some to wonder how they should access their bot’s state. Premier Developer Consultant Ben Williams shares an example of using dependency injection in your BotFramework projects.When using the .NET BotBuilder SDK’s dialog system, you can access the bot state using the ...

Running .NET applications client-side in the browser

In this post, App Dev Managers Robert Schumann and Ben Hlaban, introduce us to Blazor – an experimental web UI framework based on C#, Razor, and HTML that runs in the browser via WebAssembly. This journey started from a blog by Daniel Roth. Other than the YouTube of Steve Sanderson’s prototype demo at NDC Oslo, this wasn’t much ...

Extensions to Application Insights Telemetry Collection

Application Development Manage Isaac Levin recently posted this article on building extensions for Application Insights.  In this post, he demonstrates how to capture additional HTTP metadata using custom telemetry Initializers for Application Insights.I will start off by saying I love Application Insights. I have been using it for a long...

Converting PCL (Portable Class Libraries) to .NET Standard Class Libraries – Part 3

In Part 3 of this 3 part series, App Dev Manager, Herald Gjura describes how to incorporate these libraries into an existing .NET application.In Part 1 and 2 of this blog series I described how to migrate your old PCL libraries into the .NET Standard ones, and how to change you build and release pipeline for a successful NuGet deployment. In ...

Async Main() is available, but hidden

Check out this quick tip on unlocking the new features of C# 7.1 from Premier Developer consultant Ben Williams.Ever try to use async/await in your Main method of a .NET app? You couldn’t before, but now you can. I just posted a quick tip about enabling this by turning on C# 7.1 features in Visual Studio (they are not enabled by default). ...

Debugging ASP Core on Linux with Visual Studio 2017

NET Core and specifically ASP Core is an Open Source, High Performance implementation of .NET that runs on Windows, Linux and Mac. After you deploy your web application to a Linux server it can be difficult to troubleshoot when issues arise. In this article, I’ll show you how to configure your Linux test server and Development environment to allow remote debugging giving you all the greatness of debugging in Visual Studio while your code is running on a Linux server.

Role Based Access Control in ASP.NET MVC

In this post, Premier Developer consultant Lizet Pena De Sola explains Role Based Access Control in ASP.NET MVC. Role Based Access Control in MVC is pretty straight forward. There is also a way to do claims access control, but the most common way is based on roles. To show or hide action links in a view depending on the user role we can ...

Updating Windows Form UI elements from another thread

This post is from App Dev Manager, Omer Amin who covers how to update Windows Form UI elements using worker threads.In a typical Windows Forms .NET application, the UI elements are created and updated by the main thread. This thread is also responsible for processing Windows messages. For this reason, it is recommended to keep message ...

Microsoft .NET Architecture Guidance

This post is provided by Senior ADM, Brian Swiger, who shares several helpful .NET Architectural Guidance e-books and samples.Four application architecture guidance drafts are available from Microsoft's Developer Division and the Visual Studio product teams.  These drafts cover four areas: Microservices and Docker, ASP.NET Web ...

What can I do in .NET Core that I can’t in the full .NET Framework?

This post is provided by Senior App Dev Managers, Keith Beller and John Abele who ask the question, “What can I do in .NET Core that I can’t do in the full .NET Framework?” Microsoft’s mission to empower every individual and organization is manifested in .NET Core, the most transformative .NET framework ever. Rebuilt from the ...