/// <summary> /// Remove a cache entry from the <see cref="IDistributedCache"/> with the key /// generated by the key factory function. /// </summary> /// <typeparam name="TSource">The type of the value.</typeparam> /// <param name="observable">The parent observable.</param> /// <param name="key">The cache key.</param> /// <returns>An instance of <see cref="IProviderObservable{TSource}"/>.</returns> public static IProviderObservable <TSource> RemoveDistributedCacheEntry <TSource>( this IProviderObservable <TSource> observable, string key) => observable.RemoveDistributedCacheEntry(s => key);