diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Services/Base/ServiceBase.cs | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to 'OpenSim/Services/Base/ServiceBase.cs')
-rw-r--r-- | OpenSim/Services/Base/ServiceBase.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Services/Base/ServiceBase.cs b/OpenSim/Services/Base/ServiceBase.cs index a7eb2be..2017f50 100644 --- a/OpenSim/Services/Base/ServiceBase.cs +++ b/OpenSim/Services/Base/ServiceBase.cs | |||
@@ -26,8 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | ||
30 | using System.IO; | 29 | using System.IO; |
30 | using System.Collections.Generic; | ||
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using log4net; | 32 | using log4net; |
33 | using Nini.Config; | 33 | using Nini.Config; |
@@ -38,7 +38,7 @@ namespace OpenSim.Services.Base | |||
38 | public class ServiceBase | 38 | public class ServiceBase |
39 | { | 39 | { |
40 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 40 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
41 | 41 | ||
42 | public T LoadPlugin<T>(string dllName) where T:class | 42 | public T LoadPlugin<T>(string dllName) where T:class |
43 | { | 43 | { |
44 | return LoadPlugin<T>(dllName, new Object[0]); | 44 | return LoadPlugin<T>(dllName, new Object[0]); |
@@ -54,6 +54,7 @@ namespace OpenSim.Services.Base | |||
54 | string noRoot = dllName.Substring(pathRoot.Length); | 54 | string noRoot = dllName.Substring(pathRoot.Length); |
55 | string[] parts = noRoot.Split(new char[] {':'}); | 55 | string[] parts = noRoot.Split(new char[] {':'}); |
56 | 56 | ||
57 | |||
57 | dllName = pathRoot + parts[0]; | 58 | dllName = pathRoot + parts[0]; |
58 | 59 | ||
59 | string className = String.Empty; | 60 | string className = String.Empty; |
@@ -104,12 +105,12 @@ namespace OpenSim.Services.Base | |||
104 | List<string> strArgs = new List<string>(); | 105 | List<string> strArgs = new List<string>(); |
105 | foreach (Object arg in args) | 106 | foreach (Object arg in args) |
106 | strArgs.Add(arg.ToString()); | 107 | strArgs.Add(arg.ToString()); |
107 | 108 | ||
108 | m_log.Error( | 109 | m_log.Error( |
109 | string.Format( | 110 | string.Format( |
110 | "[SERVICE BASE]: Failed to load plugin {0} from {1} with args {2}", | 111 | "[SERVICE BASE]: Failed to load plugin {0} from {1} with args {2}", |
111 | interfaceName, dllName, string.Join(", ", strArgs.ToArray())), e); | 112 | interfaceName, dllName, string.Join(", ", strArgs.ToArray())), e); |
112 | 113 | ||
113 | return null; | 114 | return null; |
114 | } | 115 | } |
115 | } | 116 | } |