/// <summary> /// Called once per request after Initialize and Invoke. /// </summary> /// <returns>async completion</returns> internal async Task Teardown() { await ApplyResponse(); await TeardownCore(); Request.UnregisterAuthenticationHandler(_registration); }