Skip to content

Commit

Permalink
Allow for singletons to be registered with lifetimescope parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris van de Steeg committed Mar 13, 2017
1 parent e8c1f0a commit a33d5cb
Show file tree
Hide file tree
Showing 32 changed files with 3,755 additions and 1,910 deletions.
Expand Up @@ -46,7 +46,7 @@
<Compile Include="DryIoCDependencyResolver.cs" />
<Compile Include="DryIoc\AsyncExecutionFlowScopeContext.cs" />
<Compile Include="DryIoc\Container.cs" />
<Compile Include="DryIoc\FactoryCompiler.cs" />
<Compile Include="DryIoc\FastExpressionCompiler.cs" />
<Compile Include="DryIoc\ImTools.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
Expand Up @@ -290,6 +290,8 @@ private IReuse GetReuse(LifetimeScope lifetimeScope)
return Reuse.InWebRequest;
case LifetimeScope.PerThread:
return Reuse.InThread;
case LifetimeScope.Singleton:
return Reuse.Singleton;
default:
return Reuse.Transient;
}
Expand Down
@@ -1,7 +1,7 @@
/*
The MIT License (MIT)
Copyright (c) 2016 Maksim Volkau
Copyright (c) 2014-2016 Maksim Volkau
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4,029 changes: 2,559 additions & 1,470 deletions Src/Commons.InversionOfControl.DryIoC/DryIoc/Container.cs

Large diffs are not rendered by default.

296 changes: 0 additions & 296 deletions Src/Commons.InversionOfControl.DryIoC/DryIoc/FactoryCompiler.cs

This file was deleted.

0 comments on commit a33d5cb

Please sign in to comment.