Skip to content

Commit 16d50fe

Browse files
committed
Merge branch 'master' of https://github.com/unitycontainer/container into v5.x
2 parents 5e6e4c7 + 2a661ac commit 16d50fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
using System;
1+
using System;
22
using System.Diagnostics;
33

44
namespace Unity
55
{
66
public static class DiagnosticExtensions
77
{
88
[Conditional("DEBUG")]
9-
public static void EnableDiagnostic(this UnityContainer container)
9+
public static UnityContainer EnableDiagnostic(this UnityContainer container)
1010
{
1111
if (null == container) throw new ArgumentNullException(nameof(container));
1212

1313
container.AddExtension(new Diagnostic());
14+
return container;
1415
}
1516
}
1617
}

0 commit comments

Comments
 (0)