.NET Developer, Microsoft MVP

All Posts (322) 322


How to Remove Default FDS Effects in UWP Apps

The Fluent Design System introduced by Windows 10 from v1709 is very beautiful, the latest v1809 further refined FDS, many UWP built in controls got FDS effect by default while developers do not need to do anything. This is usually a good thing, but it can also cause performance problems for some apps. My Character Map UWP is one of the victimized apps, and let's take a look at how to remove the …

UWP FDS

Dependency Injection with Multiple Implementations in ASP.NET Core

The built-in Dependency Injection (DI) in ASP.NET Core is very useful, but how do you deal with an interface has multiple implementations? Can the runtime choose one of these implementations based on configuration? Is there a way to get rid of reflection? Let me show you how to dynamically select a specific implementation of an interface at run time according to the configuration file without …

ASP.NET .NET Core DI Design Pattern

Path Caveat with ASP.NET Core 2.2 IIS Hosting

ASP.NET Core 2.2 has been in place for some time, with a new feature that can use the new AspNetCoreModuleV2 and deploy with InProcess mode on IIS to dramatically improve performance. These days Azure App Service finally completed the deployment of this new version of the module, I configured my blog to the new module, and it exploded in production. Let's see why and how to solve it. If you don' …

ASP.NET IIS .NET Core

Automate Windows 10 Developer Machine Setup

One of the things programmers hate most is probably setup a computer. Because the programmer's computer environment configuration is very different from normal people. In general, it takes several hours to manually install a new development machine. Let this process automating, after all, the essence of programming is to let complex things simplify, find a way to be lazy! In fact, automatic …

Windows PowerShell Choco

Integrate Azure Application Insight Data into Your Own App

Microsoft Azure has a very powerful monitoring tool called Application Insights. It can monitor every aspect of our web application, including client and server metrics, error details, performance and so on. My blog is also using Application Insights, but everytime I want to see the data, I have to go to Azure portal, even for the basic metrics like page views or server response time. I want a …

Azure Application Insight

2018 "Hour of Code" in Sanda University with Microsoft MVPs

Nowadays, computer technology is breaking the limits of human beings every day, bringing countless innovations. Getting more teenagers to learn programming techniques will bring more wonderful surprises to our world. With this in mind, on December 8th, the "Hour of Code" event was held in Shanghai Sanda University campus, sponsored by Microsoft China Public Welfare group. Three Microsoft MVPs …

MVP Hour of Code

Build .NET Core 2.2 Projects on Azure DevOps

.NET Core 2.2 has been release for couple of weeks. However, the build pipeline is still failing these days. Microsoft has not installed .NET Core 2.2 SDK to the hosted VS2017 agents yet. Let's see how to work around this issue and have a success build for our .NET Core 2.2 apps. 1. Add Task Edit your build definition, and click the "+" button to add a new task. 2. Add .NET Core SDK …

Azure .NET Core DevOps

微软Azure予力Green Dot客服成就不凡

碧点公司(Green Dot)是仔细聆听消费者心声,以消费者为导向的金融科技创新公司,致力于为大众带来高效、便捷与体验舒适的个人银行业务。Green Dot创造了预付借记卡产业,也是美国最大的可增值预付借记卡和现金充值业务服务供应商。 在2018年11月23日-24日举办的GreenDot Hackathon活动上,来自Web团队的四名开发人员 Edi Wang、Eric Wang、Emon Zan 和Jimmy Yang 组成的 “TBD” 小组,将微软智慧云Azure的人工智能服务与公司客服业务紧密结合,实现了人工智能赋能客服机器人的效果。该机器人能够理解人类自然语言,并在实时聊天中使用语音或文字准确回答用户提问,这将极大缓解人工客服的压力。 传统客服经常需要面对复杂的用户提问,而这些提问可以总结为几个常见问题,我们称之为 …

Azure AI Bot MVP

.NET Core WebUtility.UrlEncode or HttpUtility.UrlEncode

When we are dealing with URL encode in .NET Core 2.1, there are two APIs: System.Net.WebUtility.UrlEncode and System.Web.HttpUtility.UrlEncode. What's the difference between them? And which one should we prefer to use? I have done some research today, here's my findings. 1. Test Results First, let's see some tests. I've tested 2 couples of the same method between WebUtility class and …

URL Encoding .NET Core

Build a Pixel Ruler with UWP

In certain applications, we may need an on-screen ruler that indicates pixels on the screen. However, the only built-in ruler in UWP is within the InkToolbar control, we are not able to use it elsewhere. So, I will teach you how to build a pixel ruler which can be used anywhere in your UWP applications. The Demo App Create a new blank UWP application called PixelRulerUwp with minimal runtime …

UWP Win2D