Skip to content

Commit 02e66fe

Browse files
authored
Extend the functions further. (#24)
* Extend the functions further * Update README.md * Update directory.build.props * Update from preview of net 8 to release
1 parent f389a54 commit 02e66fe

File tree

8 files changed

+467
-53
lines changed

8 files changed

+467
-53
lines changed

.github/workflows/ci-build.yml

+2-18
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build
22

33
on:
4-
push:
5-
branches: [ main ]
64
pull_request:
75
branches: [ main ]
86

@@ -16,34 +14,20 @@ jobs:
1614
outputs:
1715
nbgv: ${{ steps.nbgv.outputs.SemVer2 }}
1816
steps:
19-
- name: Get Current Visual Studio Information
20-
shell: bash
21-
run: |
22-
dotnet tool update -g dotnet-vs
23-
echo "-- About RELEASE --"
24-
vs where release
25-
26-
- name: Update Visual Studio Latest Release
27-
shell: bash
28-
run: |
29-
echo "-- Update RELEASE --"
30-
vs update release Enterprise
31-
vs modify release Enterprise +mobile +desktop +uwp +web
32-
echo "-- About RELEASE Updated --"
33-
vs where release
3417

3518
- name: Checkout
3619
uses: actions/[email protected]
3720
with:
3821
fetch-depth: 0
3922
lfs: true
4023

41-
- name: Install .NET Core
24+
- name: Setup .NET 6/7/8
4225
uses: actions/[email protected]
4326
with:
4427
dotnet-version: |
4528
6.0.x
4629
7.0.x
30+
8.0.x
4731
4832
- name: NBGV
4933
id: nbgv

.github/workflows/release.yml

+3-24
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,20 @@ jobs:
1616
outputs:
1717
nbgv: ${{ steps.nbgv.outputs.SemVer2 }}
1818
steps:
19-
- name: Get Current Visual Studio Information
20-
shell: bash
21-
run: |
22-
dotnet tool update -g dotnet-vs
23-
echo "-- About RELEASE --"
24-
vs where release
25-
26-
- name: Update Visual Studio Latest Release
27-
shell: bash
28-
run: |
29-
echo "-- Update RELEASE --"
30-
vs update release Enterprise
31-
vs modify release Enterprise +mobile +desktop +uwp +web
32-
echo "-- About RELEASE Updated --"
33-
vs where release
3419

3520
- name: Checkout
3621
uses: actions/[email protected]
3722
with:
3823
fetch-depth: 0
3924
lfs: true
4025

41-
- name: Install .NET Core
26+
- name: Setup .NET 6/7/8
4227
uses: actions/[email protected]
4328
with:
4429
dotnet-version: |
4530
6.0.x
4631
7.0.x
32+
8.0.x
4733
4834
- name: NBGV
4935
id: nbgv
@@ -54,15 +40,8 @@ jobs:
5440
- name: NuGet Restore
5541
run: dotnet restore
5642
working-directory: src
57-
58-
- name: Build
59-
run: dotnet build --configuration=${{ env.configuration }} --verbosity=minimal --no-restore
60-
working-directory: src
61-
62-
- uses: nuget/setup-nuget@v1
63-
name: Setup NuGet
6443

65-
- name: Pack
44+
- name: Build and Pack
6645
run: dotnet pack --configuration=${{ env.configuration }} --verbosity=minimal --no-restore
6746
working-directory: src
6847

README.md

+33
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,36 @@
22

33
## Overview
44
Extensions for concerns found in System.Reactive that make consuming the library and using it to build an application easier.
5+
6+
## The library contains the following extensions
7+
8+
### `ReactiveMarbles.Extensions`
9+
10+
#### `ReactiveExtensions`
11+
12+
- WhereIsNotNull
13+
- AsSignal
14+
- SyncTimer
15+
- BufferUntil
16+
- CatchIgnore
17+
- CombineLatestValuesAreAllFalse
18+
- CombineLatestValuesAreAllTrue
19+
- GetMax
20+
- GetMin
21+
- DetectStale
22+
- Conflate
23+
- Heartbeat
24+
- WithLimitedConcurrency
25+
- OnNext
26+
- ObserveOnSafe
27+
- Start
28+
- ForEach
29+
- ScheduleSafe
30+
- FromArray
31+
- Using
32+
- While
33+
- Schedule
34+
- Filter
35+
- Shuffle
36+
- OnErrorRetry
37+
- TakeUntil

src/ReactiveMarbles.Extensions.Tests/DisposableExtensionsTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void GivenNull_WhenDisposeWith_ThenExceptionThrown()
2424
var sut = Disposable.Create(() => { });
2525

2626
// When
27-
var result = Record.Exception(() => sut.DisposeWith(null));
27+
var result = Record.Exception(() => sut.DisposeWith(null!));
2828

2929
// Then
3030
result

src/ReactiveMarbles.Extensions/DisposableExtensions.cs

+4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ public static class DisposableExtensions
2222
public static T DisposeWith<T>(this T item, CompositeDisposable compositeDisposable)
2323
where T : IDisposable
2424
{
25+
#if NETSTANDARD
2526
if (compositeDisposable is null)
2627
{
2728
throw new ArgumentNullException(nameof(compositeDisposable));
2829
}
30+
#else
31+
ArgumentNullException.ThrowIfNull(compositeDisposable);
32+
#endif
2933

3034
compositeDisposable.Add(item);
3135
return item;

0 commit comments

Comments
 (0)