public override async Task Invoke(IOwinContext context) { var operationId = context.Get<string>(Consts.OperationIdContextKey); if(operationId != null) OperationIdContext.Set(operationId); await Next.Invoke(context); } }