public override async Task Invoke(IOwinContext context) { InitializeOperationIdContext(context); try { await Next.Invoke(context); } finally { context.Set<string>(Consts.OperationIdContextKey, null); OperationIdContext.Clear(); } }