We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ae8879 commit 4e30572Copy full SHA for 4e30572
LazyProxy.Unity.Sample/LazyProxy.Unity.Sample.csproj
@@ -2,6 +2,7 @@
2
<PropertyGroup>
3
<OutputType>Exe</OutputType>
4
<TargetFramework>netcoreapp2.0</TargetFramework>
5
+ <LangVersion>8</LangVersion>
6
</PropertyGroup>
7
<ItemGroup>
8
<PackageReference Include="Unity.Container" Version="5.10.2" />
LazyProxy.Unity.Sample/Program.cs
@@ -17,7 +17,7 @@ public static void Main(string[] args)
17
private static void UnityExtensionExample1()
18
{
19
// Creating a container
20
- var container = new UnityContainer();
+ using var container = new UnityContainer();
21
22
// Adding a lazy registration
23
container.RegisterLazy<IMyService, MyService>();
0 commit comments