When using in .net core 3.1, the NetStandardIDistributedCacheByteArrayProvider does not pass CancellationToken received from Policy.
Please see this line:
When used in .net core 3.1, target framework is resolved to .net standard 2.1, thus we don't get CancellationToken passed and our code looks like this (decompiled via resharper):
