diff options
author | UbitUmarov | 2015-08-28 20:54:59 +0100 |
---|---|---|
committer | UbitUmarov | 2015-08-28 20:54:59 +0100 |
commit | 46054d4f0258c8df91c2e0f081af2ea87375b515 (patch) | |
tree | 2a60a4f2de6b5ad57f98bf99aef8ff0cbf35b8b1 | |
parent | review llLoginService for var support (diff) | |
download | opensim-SC-46054d4f0258c8df91c2e0f081af2ea87375b515.zip opensim-SC-46054d4f0258c8df91c2e0f081af2ea87375b515.tar.gz opensim-SC-46054d4f0258c8df91c2e0f081af2ea87375b515.tar.bz2 opensim-SC-46054d4f0258c8df91c2e0f081af2ea87375b515.tar.xz |
review ServiceBase for var
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Base/ServiceBase.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Services/Base/ServiceBase.cs b/OpenSim/Services/Base/ServiceBase.cs index ef30cba..22f27e0 100644 --- a/OpenSim/Services/Base/ServiceBase.cs +++ b/OpenSim/Services/Base/ServiceBase.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.IO; | ||
29 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
30 | using System.Reflection; | 31 | using System.Reflection; |
31 | using log4net; | 32 | using log4net; |
@@ -45,9 +46,11 @@ namespace OpenSim.Services.Base | |||
45 | 46 | ||
46 | public T LoadPlugin<T>(string dllName, Object[] args) where T:class | 47 | public T LoadPlugin<T>(string dllName, Object[] args) where T:class |
47 | { | 48 | { |
48 | string[] parts = dllName.Split(new char[] {':'}); | 49 | string pathRoot = Path.GetPathRoot(dllName); |
50 | string noRoot = dllName.Substring(pathRoot.Length); | ||
51 | string[] parts = noRoot.Split(new char[] { ':' }); | ||
49 | 52 | ||
50 | dllName = parts[0]; | 53 | dllName = pathRoot + parts[0]; |
51 | 54 | ||
52 | string className = String.Empty; | 55 | string className = String.Empty; |
53 | 56 | ||