aspnet/Caching

CancellationToken added to 2.0 IDistributedCache breaks 1.0 based cache implementations

jeffrymorris opened this issue · 3 comments

Hi All -

This commit adds cancellation tokens to some of IDistributableCache members, which causes a MissingMethodException when a 1.0 based implementation is used in a 2.0 project. See here for reference.

The question I have is why make the change a breaking change? Why not leave GetAsync(key) and add the second overload that takes cancellation tokens?

Thanks,
Jeff

Even adding a new overload to the interface would have been a breaking change.

@Tratcher - true, but since its dynamically invoked vs compiled it shouldn't it resolve?

It depends on how it was called, among other things. The issue is moot at this point though because the 2.0 bits have been finalized.