private readonly string queue;
public static readonly string LOCALHOST = ".";
public static readonly QueueReference DEFAULT = new QueueReference (LOCALHOST, null, false);
+ private static readonly string PRIVATE_STR = "private$";
public QueueReference (string host, string queue, bool isPrivate)
{
public string Queue {
get {
if (isPrivate)
- return @"private$\" + queue;
+ return PRIVATE_STR + @"\" + queue;
else
return queue;
}
public static bool IsPrivateStr (string s)
{
- return "private$" == s.ToLower ();
+ return PRIVATE_STR == s.ToLower ();
}
public static string RemoveLeadingSlashes (string s)
public override string ToString ()
{
if (IsPrivate) {
- return Host + "\\$private\\" + Queue;
+ return Host + "\\" + PRIVATE_STR + "\\" + queue;
} else {
return Host + "\\" + Queue;
}