Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)DestinationType;
         hashCode = (hashCode * 397) ^ (TopicName != null ? TopicName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsTopic.GetHashCode();
         hashCode = (hashCode * 397) ^ IsQueue.GetHashCode();
         hashCode = (hashCode * 397) ^ IsTemporary.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
        public GenericNameValue ToArgs()
        {
            GenericNameValue prop = new GenericNameValue();

            prop["ServerPath"]    = ServerPath;
            prop["QueueName"]     = QueueName;
            prop["Mode"]          = ((int)Mode).ToString();
            prop["IsTrans"]       = IsTrans.ToString();
            prop["MaxRetry"]      = MaxRetry.ToString();
            prop["ReloadOnStart"] = ReloadOnStart.ToString();
            prop["TargetPath"]    = TargetPath;
            prop["IsTopic"]       = IsTopic.ToString();
            prop["CommitMode"]    = ((int)CommitMode).ToString();
            return(prop);
        }