//
using System;
+using System.Globalization;
using System.IO;
using System.Reflection;
using System.Collections;
namespace System.Runtime.Remoting
{
-#if NET_2_0
[System.Runtime.InteropServices.ComVisible (true)]
public static class RemotingConfiguration
-#else
- public class RemotingConfiguration
-#endif
{
-#if !NET_2_0
- //
- // Private constructor: nobody instantiates this.
- //
- private RemotingConfiguration ()
- {
- }
-#endif
static string applicationID = null;
static string applicationName = null;
- static string configFile = "";
- static SmallXmlParser parser = null;
+// static string configFile = "";
+// static SmallXmlParser parser = null;
static string processGuid = null;
static bool defaultConfigRead = false;
static bool defaultDelayedConfigRead = false;
set { applicationName = value; }
}
-#if NET_2_0
[MonoTODO]
public static CustomErrorsModes CustomErrorsMode
{
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
-#endif
public static string ProcessId
{
// public methods
-#if NET_2_0
- [MonoTODO ("Implement ensureSecurity")]
- public
-#else
- internal
-#endif
- static void Configure (string filename, bool ensureSecurity)
+ [MonoTODO ("ensureSecurity support has not been implemented")]
+ public static void Configure (string filename, bool ensureSecurity)
{
lock (channelTemplates) {
if (!defaultConfigRead) {
ReadConfigFile (filename);
}
}
-#if NET_2_0
+
[Obsolete ("Use Configure(String,Boolean)")]
-#endif
public static void Configure (string filename)
{
Configure (filename, false);
bool CheckPath (string path)
{
- if (path.StartsWith ("/"))
+ CompareInfo ci = CultureInfo.InvariantCulture.CompareInfo;
+ if (ci.IsPrefix (path, "/", CompareOptions.Ordinal))
return path == currentXmlPath;
else
- return currentXmlPath.EndsWith (path);
+ return ci.IsSuffix (currentXmlPath, path, CompareOptions.Ordinal);
}
public void OnStartParsing (SmallXmlParser parser) {}