Skip to content

Commit 0ee09bb

Browse files
author
Oren Novotny
authored
Merge pull request #987 from dotnet/dependabot/nuget/Rx.NET/Source/PublicApiGenerator-9.3.0
Bump PublicApiGenerator from 7.0.1 to 9.3.0 in /Rx.NET/Source
2 parents 4249fe3 + da033fc commit 0ee09bb

File tree

4 files changed

+82
-66
lines changed

4 files changed

+82
-66
lines changed

Rx.NET/Source/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ local.properties
2828
# PDT-specific
2929
.buildpath
3030

31+
# ApiApprovals
32+
*.received.cs
33+
3134

3235
#################
3336
## Visual Studio

Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Api/ApiApprovalTests.Core.approved.cs

Lines changed: 70 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ protected override void OnCompletedCore() { }
3939
protected override void OnErrorCore(System.Exception error) { }
4040
protected override void OnNextCore(T value) { }
4141
}
42+
public abstract class EventPatternSourceBase<TSender, TEventArgs>
43+
{
44+
protected EventPatternSourceBase(System.IObservable<System.Reactive.EventPattern<TSender, TEventArgs>> source, System.Action<System.Action<TSender, TEventArgs>, System.Reactive.EventPattern<TSender, TEventArgs>> invokeHandler) { }
45+
protected void Add(System.Delegate handler, System.Action<TSender, TEventArgs> invoke) { }
46+
protected void Remove(System.Delegate handler) { }
47+
}
4248
public class EventPattern<TEventArgs> : System.Reactive.EventPattern<object, TEventArgs>
4349
{
4450
public EventPattern(object sender, TEventArgs e) { }
@@ -51,28 +57,24 @@ public EventPattern(TSender sender, TEventArgs e) { }
5157
public bool Equals(System.Reactive.EventPattern<TSender, TEventArgs> other) { }
5258
public override bool Equals(object obj) { }
5359
public override int GetHashCode() { }
54-
}
55-
public abstract class EventPatternSourceBase<TSender, TEventArgs>
56-
{
57-
protected EventPatternSourceBase(System.IObservable<System.Reactive.EventPattern<TSender, TEventArgs>> source, System.Action<System.Action<TSender, TEventArgs>, System.Reactive.EventPattern<TSender, TEventArgs>> invokeHandler) { }
58-
protected void Add(System.Delegate handler, System.Action<TSender, TEventArgs> invoke) { }
59-
protected void Remove(System.Delegate handler) { }
60+
public static bool ==(System.Reactive.EventPattern<TSender, TEventArgs> first, System.Reactive.EventPattern<TSender, TEventArgs> second) { }
61+
public static bool !=(System.Reactive.EventPattern<TSender, TEventArgs> first, System.Reactive.EventPattern<TSender, TEventArgs> second) { }
6062
}
6163
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Module | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Enum | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.Event | System.AttributeTargets.Interface | System.AttributeTargets.Parameter | System.AttributeTargets.Delegate | System.AttributeTargets.ReturnValue | System.AttributeTargets.GenericParameter | System.AttributeTargets.All)]
6264
[System.Reactive.ExperimentalAttribute()]
6365
public sealed class ExperimentalAttribute : System.Attribute
6466
{
6567
public ExperimentalAttribute() { }
6668
}
69+
public interface IEventPatternSource<TEventArgs>
70+
{
71+
public event System.EventHandler<TEventArgs> OnNext;
72+
}
6773
public interface IEventPattern<out TSender, out TEventArgs>
6874
{
6975
TEventArgs EventArgs { get; }
7076
TSender Sender { get; }
7177
}
72-
public interface IEventPatternSource<TEventArgs>
73-
{
74-
public event System.EventHandler<TEventArgs> OnNext;
75-
}
7678
public interface IEventSource<out T>
7779
{
7880
public event System.Action<T> OnNext;
@@ -83,16 +85,16 @@ public interface IObserver<in TValue, out TResult>
8385
TResult OnError(System.Exception exception);
8486
TResult OnNext(TValue value);
8587
}
86-
[System.Runtime.CompilerServices.AsyncMethodBuilderAttribute(typeof(System.Runtime.CompilerServices.TaskObservableMethodBuilder<>))]
87-
public interface ITaskObservable<out T> : System.IObservable<T>
88-
{
89-
System.Reactive.ITaskObservableAwaiter<T> GetAwaiter();
90-
}
9188
public interface ITaskObservableAwaiter<out T> : System.Runtime.CompilerServices.INotifyCompletion
9289
{
9390
bool IsCompleted { get; }
9491
T GetResult();
9592
}
93+
[System.Runtime.CompilerServices.AsyncMethodBuilderAttribute(typeof(System.Runtime.CompilerServices.TaskObservableMethodBuilder<T>))]
94+
public interface ITaskObservable<out T> : System.IObservable<T>
95+
{
96+
System.Reactive.ITaskObservableAwaiter<T> GetAwaiter();
97+
}
9698
[System.Reactive.ExperimentalAttribute()]
9799
public class ListObservable<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.IEnumerable, System.IObservable<object>
98100
{
@@ -118,9 +120,15 @@ public static System.Reactive.Notification<T> CreateOnCompleted<T>() { }
118120
public static System.Reactive.Notification<T> CreateOnError<T>(System.Exception error) { }
119121
public static System.Reactive.Notification<T> CreateOnNext<T>(T value) { }
120122
}
123+
public enum NotificationKind
124+
{
125+
OnNext = 0,
126+
OnError = 1,
127+
OnCompleted = 2,
128+
}
121129
public abstract class Notification<T> : System.IEquatable<System.Reactive.Notification<T>>
122130
{
123-
protected internal Notification() { }
131+
protected Notification() { }
124132
public abstract System.Exception Exception { get; }
125133
public abstract bool HasValue { get; }
126134
public abstract System.Reactive.NotificationKind Kind { get; }
@@ -133,12 +141,8 @@ protected internal Notification() { }
133141
public override bool Equals(object obj) { }
134142
public System.IObservable<T> ToObservable() { }
135143
public System.IObservable<T> ToObservable(System.Reactive.Concurrency.IScheduler scheduler) { }
136-
}
137-
public enum NotificationKind
138-
{
139-
OnNext = 0,
140-
OnError = 1,
141-
OnCompleted = 2,
144+
public static bool ==(System.Reactive.Notification<T> left, System.Reactive.Notification<T> right) { }
145+
public static bool !=(System.Reactive.Notification<T> left, System.Reactive.Notification<T> right) { }
142146
}
143147
public abstract class ObservableBase<T> : System.IObservable<T>
144148
{
@@ -187,6 +191,8 @@ public bool Equals(System.Reactive.TimeInterval<T> other) { }
187191
public override bool Equals(object obj) { }
188192
public override int GetHashCode() { }
189193
public override string ToString() { }
194+
public static bool ==(System.Reactive.TimeInterval<T> first, System.Reactive.TimeInterval<T> second) { }
195+
public static bool !=(System.Reactive.TimeInterval<T> first, System.Reactive.TimeInterval<T> second) { }
190196
}
191197
public class static Timestamped
192198
{
@@ -201,6 +207,8 @@ public bool Equals(System.Reactive.Timestamped<T> other) { }
201207
public override bool Equals(object obj) { }
202208
public override int GetHashCode() { }
203209
public override string ToString() { }
210+
public static bool ==(System.Reactive.Timestamped<T> first, System.Reactive.Timestamped<T> second) { }
211+
public static bool !=(System.Reactive.Timestamped<T> first, System.Reactive.Timestamped<T> second) { }
204212
}
205213
public struct Unit : System.IEquatable<System.Reactive.Unit>
206214
{
@@ -209,6 +217,8 @@ public bool Equals(System.Reactive.Unit other) { }
209217
public override bool Equals(object obj) { }
210218
public override int GetHashCode() { }
211219
public override string ToString() { }
220+
public static bool ==(System.Reactive.Unit first, System.Reactive.Unit second) { }
221+
public static bool !=(System.Reactive.Unit first, System.Reactive.Unit second) { }
212222
}
213223
}
214224
namespace System.Reactive.Concurrency
@@ -295,12 +305,6 @@ public interface IConcurrencyAbstractionLayer
295305
void StartThread(System.Action<object> action, object state);
296306
System.IDisposable StartTimer(System.Action<object> action, object state, System.TimeSpan dueTime);
297307
}
298-
public sealed class ImmediateScheduler : System.Reactive.Concurrency.LocalScheduler
299-
{
300-
public static System.Reactive.Concurrency.ImmediateScheduler Instance { get; }
301-
public override System.IDisposable Schedule<TState>(TState state, System.Func<System.Reactive.Concurrency.IScheduler, TState, System.IDisposable> action) { }
302-
public override System.IDisposable Schedule<TState>(TState state, System.TimeSpan dueTime, System.Func<System.Reactive.Concurrency.IScheduler, TState, System.IDisposable> action) { }
303-
}
304308
public interface IScheduledItem<TAbsolute>
305309
{
306310
TAbsolute DueTime { get; }
@@ -329,6 +333,12 @@ public interface IStopwatchProvider
329333
{
330334
System.Reactive.Concurrency.IStopwatch StartStopwatch();
331335
}
336+
public sealed class ImmediateScheduler : System.Reactive.Concurrency.LocalScheduler
337+
{
338+
public static System.Reactive.Concurrency.ImmediateScheduler Instance { get; }
339+
public override System.IDisposable Schedule<TState>(TState state, System.Func<System.Reactive.Concurrency.IScheduler, TState, System.IDisposable> action) { }
340+
public override System.IDisposable Schedule<TState>(TState state, System.TimeSpan dueTime, System.Func<System.Reactive.Concurrency.IScheduler, TState, System.IDisposable> action) { }
341+
}
332342
public abstract class LocalScheduler : System.IServiceProvider, System.Reactive.Concurrency.IScheduler, System.Reactive.Concurrency.IStopwatchProvider
333343
{
334344
protected LocalScheduler() { }
@@ -350,7 +360,7 @@ public System.IDisposable SchedulePeriodic<TState>(TState state, System.TimeSpan
350360
public override System.Reactive.Concurrency.IStopwatch StartStopwatch() { }
351361
}
352362
public abstract class ScheduledItem<TAbsolute> : System.IComparable<System.Reactive.Concurrency.ScheduledItem<TAbsolute>>, System.IDisposable, System.Reactive.Concurrency.IScheduledItem<TAbsolute>
353-
where TAbsolute : System.IComparable<>
363+
where TAbsolute : System.IComparable<TAbsolute>
354364
{
355365
protected ScheduledItem(TAbsolute dueTime, System.Collections.Generic.IComparer<TAbsolute> comparer) { }
356366
public TAbsolute DueTime { get; }
@@ -361,9 +371,15 @@ public override bool Equals(object obj) { }
361371
public override int GetHashCode() { }
362372
public void Invoke() { }
363373
protected abstract System.IDisposable InvokeCore();
374+
public static bool ==(System.Reactive.Concurrency.ScheduledItem<TAbsolute> left, System.Reactive.Concurrency.ScheduledItem<TAbsolute> right) { }
375+
public static bool >(System.Reactive.Concurrency.ScheduledItem<TAbsolute> left, System.Reactive.Concurrency.ScheduledItem<TAbsolute> right) { }
376+
public static bool >=(System.Reactive.Concurrency.ScheduledItem<TAbsolute> left, System.Reactive.Concurrency.ScheduledItem<TAbsolute> right) { }
377+
public static bool !=(System.Reactive.Concurrency.ScheduledItem<TAbsolute> left, System.Reactive.Concurrency.ScheduledItem<TAbsolute> right) { }
378+
public static bool <(System.Reactive.Concurrency.ScheduledItem<TAbsolute> left, System.Reactive.Concurrency.ScheduledItem<TAbsolute> right) { }
379+
public static bool <=(System.Reactive.Concurrency.ScheduledItem<TAbsolute> left, System.Reactive.Concurrency.ScheduledItem<TAbsolute> right) { }
364380
}
365381
public sealed class ScheduledItem<TAbsolute, TValue> : System.Reactive.Concurrency.ScheduledItem<TAbsolute>
366-
where TAbsolute : System.IComparable<>
382+
where TAbsolute : System.IComparable<TAbsolute>
367383
{
368384
public ScheduledItem(System.Reactive.Concurrency.IScheduler scheduler, TValue state, System.Func<System.Reactive.Concurrency.IScheduler, TValue, System.IDisposable> action, TAbsolute dueTime, System.Collections.Generic.IComparer<TAbsolute> comparer) { }
369385
public ScheduledItem(System.Reactive.Concurrency.IScheduler scheduler, TValue state, System.Func<System.Reactive.Concurrency.IScheduler, TValue, System.IDisposable> action, TAbsolute dueTime) { }
@@ -438,7 +454,7 @@ public void GetResult() { }
438454
public void OnCompleted(System.Action continuation) { }
439455
}
440456
public class SchedulerQueue<TAbsolute>
441-
where TAbsolute : System.IComparable<>
457+
where TAbsolute : System.IComparable<TAbsolute>
442458
{
443459
public SchedulerQueue() { }
444460
public SchedulerQueue(int capacity) { }
@@ -483,16 +499,8 @@ public System.IDisposable ScheduleLongRunning<TState>(TState state, System.Actio
483499
public System.IDisposable SchedulePeriodic<TState>(TState state, System.TimeSpan period, System.Func<TState, TState> action) { }
484500
public override System.Reactive.Concurrency.IStopwatch StartStopwatch() { }
485501
}
486-
public abstract class VirtualTimeScheduler<TAbsolute, TRelative> : System.Reactive.Concurrency.VirtualTimeSchedulerBase<TAbsolute, TRelative>
487-
where TAbsolute : System.IComparable<>
488-
{
489-
protected VirtualTimeScheduler() { }
490-
protected VirtualTimeScheduler(TAbsolute initialClock, System.Collections.Generic.IComparer<TAbsolute> comparer) { }
491-
protected override System.Reactive.Concurrency.IScheduledItem<TAbsolute> GetNext() { }
492-
public override System.IDisposable ScheduleAbsolute<TState>(TState state, TAbsolute dueTime, System.Func<System.Reactive.Concurrency.IScheduler, TState, System.IDisposable> action) { }
493-
}
494502
public abstract class VirtualTimeSchedulerBase<TAbsolute, TRelative> : System.IServiceProvider, System.Reactive.Concurrency.IScheduler, System.Reactive.Concurrency.IStopwatchProvider
495-
where TAbsolute : System.IComparable<>
503+
where TAbsolute : System.IComparable<TAbsolute>
496504
{
497505
protected VirtualTimeSchedulerBase() { }
498506
protected VirtualTimeSchedulerBase(TAbsolute initialClock, System.Collections.Generic.IComparer<TAbsolute> comparer) { }
@@ -520,9 +528,17 @@ public void Stop() { }
520528
public class static VirtualTimeSchedulerExtensions
521529
{
522530
public static System.IDisposable ScheduleAbsolute<TAbsolute, TRelative>(this System.Reactive.Concurrency.VirtualTimeSchedulerBase<TAbsolute, TRelative> scheduler, TAbsolute dueTime, System.Action action)
523-
where TAbsolute : System.IComparable<> { }
531+
where TAbsolute : System.IComparable<TAbsolute> { }
524532
public static System.IDisposable ScheduleRelative<TAbsolute, TRelative>(this System.Reactive.Concurrency.VirtualTimeSchedulerBase<TAbsolute, TRelative> scheduler, TRelative dueTime, System.Action action)
525-
where TAbsolute : System.IComparable<> { }
533+
where TAbsolute : System.IComparable<TAbsolute> { }
534+
}
535+
public abstract class VirtualTimeScheduler<TAbsolute, TRelative> : System.Reactive.Concurrency.VirtualTimeSchedulerBase<TAbsolute, TRelative>
536+
where TAbsolute : System.IComparable<TAbsolute>
537+
{
538+
protected VirtualTimeScheduler() { }
539+
protected VirtualTimeScheduler(TAbsolute initialClock, System.Collections.Generic.IComparer<TAbsolute> comparer) { }
540+
protected override System.Reactive.Concurrency.IScheduledItem<TAbsolute> GetNext() { }
541+
public override System.IDisposable ScheduleAbsolute<TState>(TState state, TAbsolute dueTime, System.Func<System.Reactive.Concurrency.IScheduler, TState, System.IDisposable> action) { }
526542
}
527543
}
528544
namespace System.Reactive.Disposables
@@ -822,11 +838,11 @@ public interface IQbservable
822838
System.Linq.Expressions.Expression Expression { get; }
823839
System.Reactive.Linq.IQbservableProvider Provider { get; }
824840
}
825-
public interface IQbservable<out T> : System.IObservable<T>, System.Reactive.Linq.IQbservable { }
826841
public interface IQbservableProvider
827842
{
828843
System.Reactive.Linq.IQbservable<TResult> CreateQuery<TResult>(System.Linq.Expressions.Expression expression);
829844
}
845+
public interface IQbservable<out T> : System.IObservable<T>, System.Reactive.Linq.IQbservable { }
830846
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.All, Inherited=false)]
831847
public sealed class LocalQueryMethodImplementationTypeAttribute : System.Attribute
832848
{
@@ -2469,17 +2485,6 @@ public static System.Reactive.Subjects.ISubject<TSource> Synchronize<TSource>(Sy
24692485
public static System.Reactive.Subjects.ISubject<TSource, TResult> Synchronize<TSource, TResult>(System.Reactive.Subjects.ISubject<TSource, TResult> subject, System.Reactive.Concurrency.IScheduler scheduler) { }
24702486
public static System.Reactive.Subjects.ISubject<TSource> Synchronize<TSource>(System.Reactive.Subjects.ISubject<TSource> subject, System.Reactive.Concurrency.IScheduler scheduler) { }
24712487
}
2472-
public sealed class Subject<T> : System.Reactive.Subjects.SubjectBase<T>
2473-
{
2474-
public Subject() { }
2475-
public override bool HasObservers { get; }
2476-
public override bool IsDisposed { get; }
2477-
public override void Dispose() { }
2478-
public override void OnCompleted() { }
2479-
public override void OnError(System.Exception error) { }
2480-
public override void OnNext(T value) { }
2481-
public override System.IDisposable Subscribe(System.IObserver<T> observer) { }
2482-
}
24832488
public abstract class SubjectBase<T> : System.IDisposable, System.IObservable<T>, System.IObserver<T>, System.Reactive.Subjects.ISubject<T>, System.Reactive.Subjects.ISubject<T, T>
24842489
{
24852490
protected SubjectBase() { }
@@ -2491,6 +2496,17 @@ protected SubjectBase() { }
24912496
public abstract void OnNext(T value);
24922497
public abstract System.IDisposable Subscribe(System.IObserver<T> observer);
24932498
}
2499+
public sealed class Subject<T> : System.Reactive.Subjects.SubjectBase<T>
2500+
{
2501+
public Subject() { }
2502+
public override bool HasObservers { get; }
2503+
public override bool IsDisposed { get; }
2504+
public override void Dispose() { }
2505+
public override void OnCompleted() { }
2506+
public override void OnError(System.Exception error) { }
2507+
public override void OnNext(T value) { }
2508+
public override System.IDisposable Subscribe(System.IObserver<T> observer) { }
2509+
}
24942510
}
24952511
namespace System.Reactive.Threading.Tasks
24962512
{

Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Api/ApiApprovalTests.Testing.approved.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public bool Equals(Microsoft.Reactive.Testing.Recorded<T> other) { }
5757
public override bool Equals(object obj) { }
5858
public override int GetHashCode() { }
5959
public override string ToString() { }
60+
public static bool ==(Microsoft.Reactive.Testing.Recorded<T> left, Microsoft.Reactive.Testing.Recorded<T> right) { }
61+
public static bool !=(Microsoft.Reactive.Testing.Recorded<T> left, Microsoft.Reactive.Testing.Recorded<T> right) { }
6062
}
6163
[System.Diagnostics.DebuggerDisplayAttribute("({Subscribe}, {Unsubscribe})")]
6264
public struct Subscription : System.IEquatable<Microsoft.Reactive.Testing.Subscription>
@@ -70,6 +72,8 @@ public bool Equals(Microsoft.Reactive.Testing.Subscription other) { }
7072
public override bool Equals(object obj) { }
7173
public override int GetHashCode() { }
7274
public override string ToString() { }
75+
public static bool ==(Microsoft.Reactive.Testing.Subscription left, Microsoft.Reactive.Testing.Subscription right) { }
76+
public static bool !=(Microsoft.Reactive.Testing.Subscription left, Microsoft.Reactive.Testing.Subscription right) { }
7377
}
7478
[System.Diagnostics.DebuggerDisplayAttribute("\\{ Clock = {Clock} Now = {Now.ToString(\"O\")} \\}")]
7579
public class TestScheduler : System.Reactive.Concurrency.VirtualTimeScheduler<long, long>

0 commit comments

Comments
 (0)