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