Auto status change to "Under Review"
@@ -7,7 +7,7 | |||
|
7 | 7 | Provides simple and flexible Xml configuration for UnityContainer. |
|
8 | 8 | </Description> |
|
9 | 9 | <Copyright>2012-2018 Sergey Smirnov</Copyright> |
|
10 |
<Version>1.0. |
|
|
10 | <Version>1.0.3</Version> | |
|
11 | 11 | <PackageLicenseUrl>https://bitbucket.org/wozard/implabnet/src/v3/Implab/license.txt</PackageLicenseUrl> |
|
12 | 12 | <PackageProjectUrl>https://bitbucket.org/wozard/implabnet</PackageProjectUrl> |
|
13 | 13 | <RepositoryUrl>https://bitbucket.org/wozard/implabnet</RepositoryUrl> |
@@ -101,10 +101,12 namespace Implab.ServiceHost.Unity { | |||
|
101 | 101 | |
|
102 | 102 | public void AddNamespace(string ns) { |
|
103 | 103 | m_resolver.AddNamespace(ns); |
|
104 | Log.Log($"AddNamespace: {ns}"); | |
|
104 | 105 | } |
|
105 | 106 | |
|
106 | 107 | public void AddAssembly(string assembly) { |
|
107 | ||
|
108 | var asm = Assembly.Load(assembly); | |
|
109 | Log.Log($"AddAssembly: {assembly} -> {asm.FullName}"); | |
|
108 | 110 | } |
|
109 | 111 | |
|
110 | 112 | /// <summary> |
@@ -146,6 +148,9 namespace Implab.ServiceHost.Unity { | |||
|
146 | 148 | public void LoadConfig(Uri location) { |
|
147 | 149 | Safe.ArgumentNotNull(location, nameof(location)); |
|
148 | 150 | |
|
151 | Log.Log($"LoadConfig {location}"); | |
|
152 | Safe.ArgumentNotNull(location, nameof(location)); | |
|
153 | ||
|
149 | 154 | m_location = location; |
|
150 | 155 | |
|
151 | 156 | var config = m_schema.LoadConfig(location.ToString()); |
@@ -75,12 +75,14 namespace Implab | |||
|
75 | 75 | } |
|
76 | 76 | |
|
77 | 77 | public static void Dispose(params IDisposable[] objects) { |
|
78 | if (objects != null) | |
|
78 | 79 | foreach (var d in objects) |
|
79 | 80 | if (d != null) |
|
80 | 81 | d.Dispose(); |
|
81 | 82 | } |
|
82 | 83 | |
|
83 | 84 | public static void Dispose(params object[] objects) { |
|
85 | if (objects != null) | |
|
84 | 86 | foreach (var obj in objects) { |
|
85 | 87 | var d = obj as IDisposable; |
|
86 | 88 | if (d != null) |
@@ -89,11 +91,13 namespace Implab | |||
|
89 | 91 | } |
|
90 | 92 | |
|
91 | 93 | public static void DisposeCollection(IEnumerable<IDisposable> objects) { |
|
94 | if (objects != null) | |
|
92 | 95 | foreach (var d in objects) |
|
93 | 96 | Dispose(d); |
|
94 | 97 | } |
|
95 | 98 | |
|
96 | 99 | public static void DisposeCollection(IEnumerable objects) { |
|
100 | if (objects != null) | |
|
97 | 101 | foreach (var d in objects) |
|
98 | 102 | Dispose(d); |
|
99 | 103 | } |
General Comments 3
ok, latest stable version should be in default
You need to be logged in to leave comments.
Login now