How to set IIS hosting environment in ASP.NET Core

When running ASP.NET Core apps, the WebHostBuilder will automatically attempt to determine which environment it is running in. By convention, this will be one of Development, Staging or Production, but you can set it to any string value you like.

Read More

An API documentation toolchain for ASP.NET Core.

There are many API document generate tools, like swagger, but when ASP.NET Core release v1.0, the swagger hard to use, so love.net team develop a API documentation toolchain for ASP.NET Core. This toolchain provides three different UI, the UI will more details in following section.

Read More

Set Derived Class Properties From Base Class

Today, I found some codes was written a year ago, that’s written for my own ORM implementations. The surprising feature is set derived class properties from base class, this feature always be used by some software architect. The simplify code (demo) as following:

Read More

Host services in IIS rather than Widnows Services

In some scenarios, we need to periodally run a task, or some tasks need to be long running in background threads. To decouple it from main business, we could isolate it as a servie, and then communication with it through some protocols, e.g. named pipe, net.tcp, TCP/IP, HTTP and so on. The service can be hosted in Windows Service, but if we deal with clients with lots of security restrictions on their servers which makes running a Windows Service difficalt or impossible.

Read More

Conditional Library Reference In Visual Studio

I recently ran into a situation where I needed to have a single project in Visual Studio to reference different platform DLL (e.g. x86, x64). That’s to say, if I build solution with x86 platform the project will reference the x86 dependency library; otherwise, reference the x64 lib.

Read More

ABOUT

We are programmers, lives in Hangzhou, Zhejiang, China. The difference with other programmers is We are software architects (or want to be), particularly love . NET Core, but we also embrace all the new stuff. (^<>^)

A man like we, are unique in the world of existence, no matter where you go, there belonging to our stage. Like desert gold, light can not hide forever! Especially our messy hair, melancholy eyes, sigh of stubble, handsome face, are deeply addicted whom even we.

PEOPLE