Related to #3.
For the second iteration, the following IDistributedCache methods should be used if the method that is going to be weaved is async. If a CancellationToken is passed to this method it should also be passed to the IDistributedCache methods.
// IDistributedCache interfacepublicSystem.Threading.Tasks.Task<byte[]>GetAsync(stringkey,System.Threading.CancellationTokentoken=default);// DistributedCacheExtensionspublicstaticSystem.Threading.Tasks.TaskSetAsync(thisMicrosoft.Extensions.Caching.Distributed.IDistributedCachecache,stringkey,byte[]value,System.Threading.CancellationTokentoken=default);
Related to #3.
For the second iteration, the following
IDistributedCachemethods should be used if the method that is going to be weaved isasync. If aCancellationTokenis passed to this method it should also be passed to theIDistributedCachemethods.