Skip to content

Commit

Permalink
Match System.Reactive namespaces
Browse files Browse the repository at this point in the history
This makes RxFree a 100% compatible drop-in replacement if only the provided types are used in a given project. Likewise, if the need arises for feature not provided in RxFree, it's trivial to "migrate" to System.Reactive: just uninstall RxFree and install System.Reactive and start using whatever is missing from this project.

Fixes #9
  • Loading branch information
kzu committed Sep 28, 2021
1 parent 3583300 commit dcf50db
Show file tree
Hide file tree
Showing 30 changed files with 53 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/RxFree.Tests/DisposableTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System.Reactive.Disposables;
using Xunit;

namespace RxFree.Tests
Expand Down
5 changes: 3 additions & 2 deletions src/RxFree.Tests/LinqTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Linq;
using System.Linq;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using Xunit;

namespace System
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree.Tests/SubjectTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Linq;
using System.Reactive.Subjects;
using Xunit;

namespace System
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/Legacy/AnonymousObserver.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.ExceptionServices;

namespace System
namespace System.Reactive
{
/// <summary>
/// Create an <see cref="IObserver{T}"/> instance from delegate-based implementations
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/Legacy/CompositeDisposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Runtime.CompilerServices;
using System.Threading;

namespace System
namespace System.Reactive.Disposables
{
/// <summary>
/// Represents a group of disposable resources that are disposed together.
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/Legacy/Disposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Threading;

namespace System
namespace System.Reactive.Disposables
{
/// <summary>
/// Provides a set of static methods for creating <see cref="IDisposable"/> objects.
Expand Down
6 changes: 4 additions & 2 deletions src/RxFree/build/Legacy/ObservableExtensions.OfType.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace System
using System.Reactive.Subjects;

namespace System.Reactive.Linq
{
partial class ObservableExtensions
static partial class ObservableExtensions
{
/// <summary>
/// Filters the elements of an observable sequence based on the specified type.
Expand Down
4 changes: 3 additions & 1 deletion src/RxFree/build/Legacy/ObservableExtensions.Select.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace System
using System.Reactive.Subjects;

namespace System.Reactive.Linq
{
partial class ObservableExtensions
{
Expand Down
4 changes: 3 additions & 1 deletion src/RxFree/build/Legacy/ObservableExtensions.Where.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace System
using System.Reactive.Subjects;

namespace System.Reactive.Linq
{
partial class ObservableExtensions
{
Expand Down
1 change: 1 addition & 0 deletions src/RxFree/build/Legacy/ObservableExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// <auto-generated />
using System.CodeDom.Compiler;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;

Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/Legacy/StableCompositeDisposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;

namespace System
namespace System.Reactive.Disposables
{
/// <summary>
/// For compatibility with Rx
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/Legacy/Subject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using System.Runtime.CompilerServices;
using System.Threading;

namespace System
namespace System.Reactive.Subjects
{
/// <summary>
/// Represents an object that is both an observable sequence as well as an observer.
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/NotNull/AnonymousObserver.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.ExceptionServices;

namespace System
namespace System.Reactive
{
/// <summary>
/// Create an <see cref="IObserver{T}"/> instance from delegate-based implementations
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/NotNull/CompositeDisposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Runtime.CompilerServices;
using System.Threading;

namespace System
namespace System.Reactive.Disposables
{
/// <summary>
/// Represents a group of disposable resources that are disposed together.
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/NotNull/Disposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Threading;

namespace System
namespace System.Reactive.Disposables
{
/// <summary>
/// Provides a set of static methods for creating <see cref="IDisposable"/> objects.
Expand Down
6 changes: 4 additions & 2 deletions src/RxFree/build/NotNull/ObservableExtensions.OfType.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace System
using System.Reactive.Subjects;

namespace System.Reactive.Linq
{
partial class ObservableExtensions
static partial class ObservableExtensions
{
/// <summary>
/// Filters the elements of an observable sequence based on the specified type.
Expand Down
4 changes: 3 additions & 1 deletion src/RxFree/build/NotNull/ObservableExtensions.Select.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace System
using System.Reactive.Subjects;

namespace System.Reactive.Linq
{
partial class ObservableExtensions
{
Expand Down
4 changes: 3 additions & 1 deletion src/RxFree/build/NotNull/ObservableExtensions.Where.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace System
using System.Reactive.Subjects;

namespace System.Reactive.Linq
{
partial class ObservableExtensions
{
Expand Down
1 change: 1 addition & 0 deletions src/RxFree/build/NotNull/ObservableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#nullable enable
using System.CodeDom.Compiler;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;

Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/NotNull/StableCompositeDisposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;

namespace System
namespace System.Reactive.Disposables
{
/// <summary>
/// For compatibility with Rx
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/NotNull/Subject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using System.Runtime.CompilerServices;
using System.Threading;

namespace System
namespace System.Reactive.Subjects
{
/// <summary>
/// Represents an object that is both an observable sequence as well as an observer.
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/Nullable/AnonymousObserver.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.ExceptionServices;

namespace System
namespace System.Reactive
{
/// <summary>
/// Create an <see cref="IObserver{T}"/> instance from delegate-based implementations
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/Nullable/CompositeDisposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Runtime.CompilerServices;
using System.Threading;

namespace System
namespace System.Reactive.Disposables
{
/// <summary>
/// Represents a group of disposable resources that are disposed together.
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/Nullable/Disposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Threading;

namespace System
namespace System.Reactive.Disposables
{
/// <summary>
/// Provides a set of static methods for creating <see cref="IDisposable"/> objects.
Expand Down
6 changes: 4 additions & 2 deletions src/RxFree/build/Nullable/ObservableExtensions.OfType.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace System
using System.Reactive.Subjects;

namespace System.Reactive.Linq
{
partial class ObservableExtensions
static partial class ObservableExtensions
{
/// <summary>
/// Filters the elements of an observable sequence based on the specified type.
Expand Down
4 changes: 3 additions & 1 deletion src/RxFree/build/Nullable/ObservableExtensions.Select.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace System
using System.Reactive.Subjects;

namespace System.Reactive.Linq
{
partial class ObservableExtensions
{
Expand Down
4 changes: 3 additions & 1 deletion src/RxFree/build/Nullable/ObservableExtensions.Where.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace System
using System.Reactive.Subjects;

namespace System.Reactive.Linq
{
partial class ObservableExtensions
{
Expand Down
1 change: 1 addition & 0 deletions src/RxFree/build/Nullable/ObservableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#nullable enable
using System.CodeDom.Compiler;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;

Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/Nullable/StableCompositeDisposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;

namespace System
namespace System.Reactive.Disposables
{
/// <summary>
/// For compatibility with Rx
Expand Down
2 changes: 1 addition & 1 deletion src/RxFree/build/Nullable/Subject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using System.Runtime.CompilerServices;
using System.Threading;

namespace System
namespace System.Reactive.Subjects
{
/// <summary>
/// Represents an object that is both an observable sequence as well as an observer.
Expand Down

0 comments on commit dcf50db

Please sign in to comment.