fsprojects / TickSpec

Lean .NET BDD framework with powerful F# integration
Apache License 2.0
133 stars 23 forks source link

Support for async dispose #53

Open iridin opened 2 years ago

iridin commented 2 years ago

Updates

Support for DisposeAsync

Adding support for asynchronously disposable resources in TickSpec/ServiceProvider.fs. This requires either using netstandard2.1 or dotnet6.0, or importing Microsoft.Bcl.AsyncInterfaces. At first I planned to use AsyncInterfaces only for net472 target framework and increase netstandard version to 2.1, but in netstandard2.1 there is no method MarkSequencePoint on ILGenerator (used in TickSpec/ScenarioGen.fs). (According to documentation this method doesn't exist even in netstandard2.0, but somehow it still works).