Граф коммитов

4099 Коммитов

Автор SHA1 Сообщение Дата
Ian Griffiths fefe75993d
Use new sign tool (#2167) 2024-09-25 10:30:27 +01:00
Ian Griffiths 840fa395d4
Align IntroToRx Start description with reality (#2163) 2024-08-28 15:29:01 +01:00
Ian Griffiths 5f831de0bc
Update Ix.NET for .NET 8.0 sdk (#2135)
* Make Ix homoiconicity generator nullable-aware
* Upgrade ApiCompare and Playground to .NET 8.0
* Fix diagnostics
* Removed old NO_ARRAY_EMPTY conditional sections as no build targets now set that
* Add .NET 8.0 targets for test projects
* Add readme explaining use of .NET Core 3.1 in tests
* Remove use of MSBuild.Sdk.Extras and step to build refs explicitly
* Replace erroneous net4.8 TFM with net48 in reference assemblies
2024-07-05 09:20:44 +01:00
Ian Griffiths 4f341fc2d5
Fix Union Dispose bug #2112 (#2131)
* Fix Union Dispose bug #2112
* Update Ix build to use .NET 8.0 SDK
* Align ref project names with assembly names (This seems to have become necessary in .NET SDK 8.0.)
2024-06-19 13:23:00 +01:00
Ian Griffiths 2edf31a8a8
Add rx 6.0.1 release notes, and document release process (#2113) 2024-05-22 13:01:51 +01:00
Ian Griffiths bc3472840e
Update test packages (#2101)
Remove test cert for UWP test runner package - no longer seems to be necessary
2024-05-01 16:23:59 +01:00
Ian Griffiths 044ff7c096
Resolve SDK 8.0.2xx diagnostics (#2100)
It looks like the 8.0.200 .NET SDK added a lot of new diagnostics suggesting the use of collection expressions.

For the most part we have taken these suggestions, but in some cases we've retained the existing code so you can see what types are being used. I find that in methods with lots of overloads (e.g., Assert.AreEqual) it becomes quite difficult to work out what will actually happen if you replace an explicitly typed list initializer with just `[...]`.
2024-05-01 06:19:03 +01:00
Ian Griffiths 8da262d87b
Feature/2005 large composite disposable perf (#2092) 2024-04-29 20:22:32 +01:00
James Manning 6f283f9d88
add select clause so example code compiles (#2097) 2024-04-29 10:27:23 +01:00
Ryan Johnson 7f8575df1b
Fix typo in 01_WhyRx.md (#2098) 2024-04-29 10:26:45 +01:00
aDisplayName b9942b2589
IntroToRx fixes (#2088)
* Fix the code example of RxFsEvents
* Fix typos
* Update 11_SchedulingAndThreading.md
2024-03-04 15:55:44 +00:00
Chris Pulman 68121df029
Fix for #2076 - Update Slack link (#2083) 2024-03-04 15:53:57 +00:00
Jan Jahoda 2c1dd71c5b
Typo in Update 07_Aggregation.md (#2079) 2024-03-04 15:53:09 +00:00
沉睡的木木夕 0e0272ad28
Update 09_CombiningSequences.md (#2087)
The description of a marble diagram was inconsistent with the diagram. (It had the labels `s1` and `s2` backwards.)
2024-02-28 06:28:19 +00:00
Whit Waldo 2305a5b0e5
Minor typo corrections to Rx book (#2074)
* Removed extraneous semicolon in code sample

signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added missing close quote

signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added missing period

signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed duplicate word

signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added capital letter where missing.

signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Fix for issue #2073

signed-off-by: Whit Waldo <whit.waldo@innovian.net>

---------

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
2024-01-10 14:10:46 +00:00
Ian Griffiths b9de686f6e
IntroToRx 2nd edition (#2071)
* IntroToRx 2nd edition

---------

Co-authored-by: Howard van Rooijen <Howard.vanRooijen@endjin.com>
2023-12-19 08:50:21 +00:00
Ian Griffiths 57e4c425f1
Prevent diagnostics on .NET SDK 8.0.100 (#2049)
Address collection expression diagnostics

In most cases, we now just use the new (C# 12.0) collection expression syntax. However, we've disabled IDE0305 because it makes suggestions that aren't an obvious improvement. It wants to rewrite use of ToArray() to be a collection expression. E.g. something.ToArray() would become [.. something]. Perhaps that will seem natural once we've all got used to spreads in collection expressions, but to me (idg10) today that looks odd.

Add comment explaining why we've disable IDE0290

Make UWP test runner use the same warning settings as everything else, except for CS0618, which a large number of tests appear to depend on.
2023-11-22 09:32:28 +00:00
Ian Griffiths bd4fb9e083
Run tests on .NET 8.0 (#2039)
* Run tests on .NET 8.0
* Add .NET 8.0 installation to build pipeline
2023-11-15 08:04:14 +00:00
Ian Griffiths c4b34f3669
Clear sync context on test that requires it to be absent (#2026)
It turns out that occasionally, the test thread ends up with its SynchronizationContext.Current set to the Windows Forms sync context. That's bad because nothing runs a message loop, so when AsyncSubject attempts to complete an awaited operation, it tries to do so by posting a message to a queue that's never going to be processed.

So we explicitly set the context to null for the test that expects that.
2023-11-02 16:43:41 +00:00
Weihan Li 6499c8ead2
Avoid spurious references to Microsoft.Bcl.AsyncInterfaces (#1719) 2023-10-13 14:47:28 +01:00
dependabot[bot] 9fb0ed0d01
Bump Verify.Xunit from 19.14.1 to 20.4.0 in /Rx.NET/Source (#1969)
Bumps [Verify.Xunit](https://github.com/VerifyTests/Verify) from 19.14.1 to 20.4.0.
- [Release notes](https://github.com/VerifyTests/Verify/releases)
- [Commits](https://github.com/VerifyTests/Verify/compare/19.14.1...20.4.0)

---
updated-dependencies:
- dependency-name: Verify.Xunit
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-15 09:08:27 +01:00
Lee Campbell 7be9ec8a2c
Importing IntroToRx.com content (#1984)
Lee has very generously allowed us to use his content as the starting point for providing updated documentation for Rx.
2023-08-11 07:26:27 +01:00
Ian Griffiths 5903ac6ace
Retain cancel callback until ForEachAsync completes (#1981) 2023-07-27 22:24:54 +01:00
Ian Griffiths dffafe1101
Fix AsyncObservable.DeferAsync infinite recursion (#1979)
The DeferAsync methods are meant to just call into the equivalent Defer methods. (I don't know why we have both, but I'm guessing that DeferAsync might be useful in cases where you want the compiler to infer the delegate type. With just Defer, it might be unclear whether you mean the one where the factory returns an observable, or the one where the factory returns a value task that produces an observable.)
2023-07-27 14:21:57 +01:00
Ian Griffiths 95d9ea9d27
Remove dynamic load of QueryDebugger (#1968) 2023-06-14 11:37:11 +01:00
Ian Griffiths f4f727cf41
Add experimental netstandard2.0 target to AsyncRx.NET (#1955) 2023-05-31 10:17:06 +01:00
Ian Griffiths 7d718526e0
Add a couple of missing items to the release notes (#1938) 2023-05-18 14:49:52 +01:00
Ian Griffiths 3fa5fff72c
Mention change in min UWP target platform version in release notes (#1937) 2023-05-18 05:13:02 +01:00
Ian Griffiths df7da6a220
Update README and related docs (#1933) 2023-05-16 17:57:15 +01:00
Ian Griffiths 2852824dc4
Update NuGet refs (#1930)
* Nerdbank.GitVersioning 3.6.128
* BenchmarkDotNet 0.13.5
* Verify.Xunit 19.14.1

Also disabled Nerdbank.GitVersioning for UWP test runner since recent versions of this library import a .proj file that doesn't work with UWP projects. (The runner doesn't need to be built with the current version number, since we never publish it anyway.)
2023-05-11 16:24:13 +01:00
Ian Griffiths b0113d5db3
Feature/1898 fix diagnostics (#1928) 2023-05-11 14:20:19 +01:00
Ian Griffiths fb2b69dd23
Use snupkg instead of embedded symbols (#1916) 2023-04-20 06:29:56 +01:00
Ian Griffiths 5ed1a30c34
Remove obsolete #if directives (#1915) 2023-04-19 21:43:32 +01:00
Jonas Fischer 677aeb2850
Expose SingleAssignmentDisposableValue (#1630) 2023-04-19 16:35:26 +01:00
Ian Griffiths 3507d5e628
Allow opt-out from TaskScheduler.UnobservedExceptions (#1914) 2023-04-19 16:32:52 +01:00
dependabot[bot] 331a1a0525
Bump Nerdbank.GitVersioning from 3.4.255 to 3.5.119 in /Rx.NET/Source (#1827)
Bumps [Nerdbank.GitVersioning](https://github.com/dotnet/Nerdbank.GitVersioning) from 3.4.255 to 3.5.119.
- [Release notes](https://github.com/dotnet/Nerdbank.GitVersioning/releases)
- [Commits](https://github.com/dotnet/Nerdbank.GitVersioning/compare/v3.4.255...v3.5.119)

---
updated-dependencies:
- dependency-name: Nerdbank.GitVersioning
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 13:43:52 +01:00
ShalokShalom dda6e2fde1
remove broken link (ruby implementation) (#1823) 2023-03-31 13:01:53 +01:00
Ian Griffiths e7c81256a4
Enable trimming in .NET 6 targets (#1906) 2023-03-30 16:58:57 +01:00
Ian Griffiths 44a28a892d
Replace xUnit with mstest (#1883)
xUnit is no longer able to run tests on UWP. MSTest supports this in Visual Studio 2022, so we are moving back to MSTest. (Rx used to used MSTest before, so this was a relatively straightforward change.)

We had to make a few changes due to the fact that xUnit supplies a SynchronizationContext whereas MSTest does not.

Also fixed a race condition in CreateAsyncTest.
2023-03-30 13:34:36 +01:00
Ian Griffiths 38e61967a1
Back out #1449 (#1901)
The original PR seems to cause more problems than it solves - see #1893

Once we separate the UI frameworks back out into their own packages, the
issue that PR was intended to solve will go away in any case.
2023-03-27 14:32:31 +01:00
Ian Griffiths 2a8c658d8b
Fix compiler diagnostics in AsyncRx.NET (#1899)
There were various warnings and messages due either to inconsistent style, or because in modern C#, newer idioms are preferred. This changes the code to be consistent with current standards.

In a couple of cases, the warnings were spurious, and have been suppressed.
2023-03-17 09:16:22 +00:00
Ian Griffiths 1eda7049b9
Merge AsyncRx.NET assemblies (#1896)
* Merge AsyncRx.NET assemblies (System.Reactive.Async.Concurrency, System.Reactive.Async.Core, System.Reactive.Async.Disposables, System.Reactive.Interfaces, System.Reactive.Async.Linq and System.Reactive.Async.Bcl all merged into System.Reactive.Async)
* Add AsyncRx.NET package unification ADR
* Replace System.Reactive.Shared with Rx dependency (and rename a couple of types due to resulting clashes, and add extension method to replace the one feature of `Notification<T>` that was in this library and not Rx)
* Fixed erroneous paths for all the .tt files)
2023-03-17 07:09:47 +00:00
Ian Griffiths 47d0f79184
Add AsyncRx.NET build pipeline (#1888) 2023-03-13 15:19:43 +00:00
Ian Griffiths 88001b1c76
Set Rx vnext to 6.0 and add versioning ADR (#1886) 2023-03-10 11:32:41 +00:00
Ian Griffiths a89f60b325
Merge pull request #1879 from dotnet/planning/roadmap-2023
Add Rx.NET 2023 roadmap, and tooling update ADR
2023-03-08 15:47:35 +00:00
Ian Griffiths af52e26e5f Reflect decision that v.next will be v6.0 not v5.1 2023-03-06 10:35:33 +00:00
Ian Griffiths 843927d344
Merge pull request #1882 from dotnet/tooling/vs2022-net70sdk
Upgrade to supported TFMs and SDK versions
2023-03-06 07:17:19 +00:00
Ian Griffiths fd5b65ff89 Change uap10.0.16299 to uap10.0.18362
Visual Studio 2022 doesn't support Windows SDK 10.0.16299 - the oldest
it supports is 10.0.18362. The last version of Windows for which the
latest available surface area was 16299 (Windows 10 1709) went out of
support in April 2019. SDK 18362 started with Windows 10 1903 in May
2019 (and 1903 itself went out of support in November 2020), so this is
still a fairly old API version, accommodating some long-out-of-date
versions of Windows. This was the smallest increment that would bring us
to SDK versions supported by the current tooling.
2023-03-06 06:32:32 +00:00
Ian Griffiths cc634d5ba2 Set net6.0 and net7.0 TFMs in integration tests 2023-03-04 10:52:00 +00:00
Ian Griffiths 7da058d060 Add missing file from System.Reactive/build 2023-03-04 10:27:44 +00:00