Owin Shutdown
Need to put some shutdown code in your Owin service? Here’s the non obvious way using CancellationToken.
using System;
using System.Threading;
using System.Threading.Tasks;
using Owin;
using Microsoft.Owin;
using Microsoft.Owin.Host.SystemWeb;