Showing results for .NET - Developer Support

Sep 7, 2018
Post comments count0
Post likes count0

Raw threads and async lambdas

Developer Support
Developer Support

Using async methods/lambdas where they are not expected causes unexpected problems. The typical example I discuss with people is TaskFactory.StartNew() because its an easy way to create Tasks and some people reach for that instead of Task.Run(), but I recently came across some code hitting the same problem while creating threads the traditional way...

Team.NETasynchronous
Mar 29, 2018
Post comments count0
Post likes count0

Accessing a .NET Bot’s State via Dependency Injection

Developer Support
Developer Support

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 dialog conte...

.NETBotsC#
Mar 23, 2018
Post comments count0
Post likes count0

Running .NET applications client-side in the browser

Developer Support
Developer Support

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 information t...

Team.NETWebBrowser
Mar 13, 2018
Post comments count0
Post likes count0

Extensions to Application Insights Telemetry Collection

Developer Support
Developer Support

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 time...

TeamDevelopmentApplication Insights
Jan 10, 2018
Post comments count0
Post likes count0

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

Developer Support
Developer Support

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 this 3...

Team.NETPCL
Jan 9, 2018
Post comments count0
Post likes count0

Async Main() is available, but hidden

Pam Lahoud
Pam Lahoud

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). https://b...

.NETC#Ben Williams
Nov 10, 2017
Post comments count0
Post likes count0

Debugging ASP Core on Linux with Visual Studio 2017

Developer Support
Developer Support

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 ...

TeamVisual Studio.NET Core
Sep 5, 2017
Post comments count0
Post likes count0

Role Based Access Control in ASP.NET MVC

Monu Bambroo
Monu Bambroo

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 use the ...

Securityasp.net
Aug 8, 2017
Post comments count0
Post likes count0

Updating Windows Form UI elements from another thread

Developer Support
Developer Support

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 processing sh...

Team.NET
Jul 11, 2017
Post comments count0
Post likes count0

Microsoft .NET Architecture Guidance

Developer Support
Developer Support

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 Applications, Az...

TeamAzureDocker