Skip to content

Commit

Permalink
releasing DryIoc v4.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dadhi committed Jun 8, 2020
1 parent afe9942 commit 10694f7
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ DryIoc is fast, small, full-featured IoC Container for .NET
- __DryIoc__ (source code) [![NuGet Badge](https://buildstats.info/nuget/DryIoc)](https://www.nuget.org/packages/DryIoc)
- __DryIoc.Internal__ (source code with public types made internal) [![NuGet Badge](https://buildstats.info/nuget/DryIoc.Internal)](https://www.nuget.org/packages/DryIoc.Internal)

- [Release Notes](https://github.com/dadhi/DryIoc/releases/tag/v4.2.0) :: [Previous Versions](https://github.com/dadhi/DryIoc/blob/master/docs/DryIoc.Docs/VersionHistory.md)
- [Release Notes](https://github.com/dadhi/DryIoc/releases/tag/v4.2.1) :: [Previous Versions](https://github.com/dadhi/DryIoc/blob/master/docs/DryIoc.Docs/VersionHistory.md)
- [Extensions and Companions](Extensions.md)
- [Documentation][WikiHome]
- [Contribution guide](CONTRIBUTING.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/DryIoc.Docs/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ Get from NuGet:
- __DryIoc__ (source code) [![NuGet Badge](https://buildstats.info/nuget/DryIoc)](https://www.nuget.org/packages/DryIoc)
- __DryIoc.Internal__ (source code with public types made internal) [![NuGet Badge](https://buildstats.info/nuget/DryIoc.Internal)](https://www.nuget.org/packages/DryIoc.Internal)

### v4.2.0 / 2020-05-18
### v4.2.1 / 2020-06-08

[Release Notes](https://github.com/dadhi/DryIoc/releases/tag/v4.2.0)
[Release Notes](https://github.com/dadhi/DryIoc/releases/tag/v4.2.1)

### [Previous Versions](VersionHistory.md)

5 changes: 5 additions & 0 deletions docs/DryIoc.Docs/VersionHistory.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Version History
---------------

## v4.2.1 Bug-fix release

- fixed: #156 Xamarin Forms iOS System.PlatformNotSupportedException: Operation is not supported on this platform.
- fixed: #283 Open-generic decorators are no applied to the service registered via RegisterInstance

## v4.2.0 Feature release

- feature: #270 Add FEC.LightExpression.LambdaExpression wrapper to work the same as System LambdaExpression
Expand Down
8 changes: 7 additions & 1 deletion nuspecs/DryIoc.Internal.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="3.3.0">
<id>DryIoc.Internal</id>
<version>4.2.0</version>
<version>4.2.1</version>
<authors>Maksim Volkau</authors>
<copyright>Copyright © 2013-2020 Maksim Volkau</copyright>
<projectUrl>https://github.com/dadhi/DryIoc</projectUrl>
Expand All @@ -13,6 +13,12 @@
<tags>IoC Container Inversion-of-Control DI Dependency-Injection DRY Service-Provider Factory</tags>
<releaseNotes>
<![CDATA[
## v4.2.1 Bug-fix release
- fixed: #156 Xamarin Forms iOS System.PlatformNotSupportedException: Operation is not supported on this platform.
- fixed: #283 Open-generic decorators are no applied to the service registered via RegisterInstance
## v4.2.0 Feature release
- feature: #270 Add FEC.LightExpression.LambdaExpression wrapper to work the same as System LambdaExpression
Expand Down
7 changes: 6 additions & 1 deletion nuspecs/DryIoc.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="3.3.0">
<id>DryIoc</id>
<version>4.2.0</version>
<version>4.2.1</version>
<authors>Maksim Volkau</authors>
<copyright>Copyright © 2013-2020 Maksim Volkau</copyright>
<projectUrl>https://github.com/dadhi/DryIoc</projectUrl>
Expand All @@ -13,6 +13,11 @@
<tags>IoC Container Inversion-of-Control DI Dependency-Injection DRY Service-Provider Factory</tags>
<releaseNotes>
<![CDATA[
## v4.2.1 Bug-fix release
- fixed: #156 Xamarin Forms iOS System.PlatformNotSupportedException: Operation is not supported on this platform.
- fixed: #283 Open-generic decorators are no applied to the service registered via RegisterInstance
## v4.2.0 Feature release
- feature: #270 Add FEC.LightExpression.LambdaExpression wrapper to work the same as System LambdaExpression
Expand Down
8 changes: 7 additions & 1 deletion src/DryIoc/DryIoc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFrameworks Condition="'$(NoLegacy)' == 'true'">net45;netstandard1.0;netstandard1.3;netstandard2.0</TargetFrameworks>

<Product>DryIoc</Product>
<VersionPrefix>4.2.0</VersionPrefix>
<VersionPrefix>4.2.1</VersionPrefix>
<VersionSuffix></VersionSuffix>

<AssemblyName>$(Product)</AssemblyName>
Expand All @@ -17,6 +17,12 @@
<PackageTags>IoC Container Inversion-of-Control DI Dependency-Injection DRY Service-Provider Factory FastExpressionCompiler ImTools</PackageTags>
<PackageReleaseNotes>
<![CDATA[
## v4.2.1 Bug-fix release
- fixed: #156 Xamarin Forms iOS System.PlatformNotSupportedException: Operation is not supported on this platform.
- fixed: #283 Open-generic decorators are no applied to the service registered via RegisterInstance
## v4.2.0 Feature release
- feature: #270 Add FEC.LightExpression.LambdaExpression wrapper to work the same as System LambdaExpression
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;
using NUnit.Framework;

namespace DryIoc.IssuesTests
{
[TestFixture]
public class GHIssue259_Possibility_to_prevent_disposal_in_child_container
{
[Test][Explicit("todo: @fixme")]
public void Test1()
{
var container = new Container();
container.Register<MyService>(Reuse.Singleton);

var someService1 = container.Resolve<MyService>();
MyService someService2 = null;

using (var childContainer = container.With(
container.Rules,
container.ScopeContext,
RegistrySharing.CloneAndDropCache,
container.SingletonScope.Clone()))
{
someService2 = childContainer.Resolve<MyService>();
}

Assert.IsTrue(someService2.IsDisposed);
Assert.IsFalse(someService1.IsDisposed);

var someService3 = container.Resolve<MyService>();
Assert.IsFalse(someService3.IsDisposed);
}

public class MyService : IDisposable
{
public bool IsDisposed;
public void Dispose() => IsDisposed = true;
}
}
}

0 comments on commit 10694f7

Please sign in to comment.