From 4aec675e27b61f4e464365a330c6a98a60206de0 Mon Sep 17 00:00:00 2001 From: JakenVeina Date: Tue, 13 Feb 2024 18:50:37 -0600 Subject: [PATCH] Fixed ambiguous overload for `ObservableListEx.ExpireAfter()`. --- ...rovalTests.DynamicDataTests.DotNet8_0.verified.txt | 2 -- src/DynamicData/List/ObservableListEx.cs | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/src/DynamicData.Tests/API/ApiApprovalTests.DynamicDataTests.DotNet8_0.verified.txt b/src/DynamicData.Tests/API/ApiApprovalTests.DynamicDataTests.DotNet8_0.verified.txt index 72a764b4c..57bb17e0e 100644 --- a/src/DynamicData.Tests/API/ApiApprovalTests.DynamicDataTests.DotNet8_0.verified.txt +++ b/src/DynamicData.Tests/API/ApiApprovalTests.DynamicDataTests.DotNet8_0.verified.txt @@ -2206,8 +2206,6 @@ namespace DynamicData where T : notnull { } public static System.IObservable> Except(this System.IObservable> source, params System.IObservable>[] others) where T : notnull { } - public static System.IObservable> ExpireAfter(this DynamicData.ISourceList source, System.Func timeSelector, System.Reactive.Concurrency.IScheduler? scheduler = null) - where T : notnull { } public static System.IObservable> ExpireAfter(this DynamicData.ISourceList source, System.Func timeSelector, System.TimeSpan? pollingInterval = default, System.Reactive.Concurrency.IScheduler? scheduler = null) where T : notnull { } public static System.IObservable> Filter(this System.IObservable> source, System.Func predicate) diff --git a/src/DynamicData/List/ObservableListEx.cs b/src/DynamicData/List/ObservableListEx.cs index 6dd83671e..046e1a958 100644 --- a/src/DynamicData/List/ObservableListEx.cs +++ b/src/DynamicData/List/ObservableListEx.cs @@ -651,17 +651,6 @@ public static IObservable> Except(this IObservableList> Except(this IObservableList> sources) where T : notnull => sources.Combine(CombineOperator.Except); - /// - /// Removes items from the cache according to the value specified by the time selector function. - /// - /// The type of the item. - /// The source. - /// Selector returning when to expire the item. Return null for non-expiring item. - /// The scheduler. - /// An observable which emits the enumerable of items. - public static IObservable> ExpireAfter(this ISourceList source, Func timeSelector, IScheduler? scheduler = null) - where T : notnull => source.ExpireAfter(timeSelector, null, scheduler); - /// /// Removes items from the cache according to the value specified by the time selector function. ///