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); } }
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); }