public static string AddServerDestination(ServerDestinationProperties sdp) { lock (configuredServerDestinationsByKey) { RfcConfigParameters configParameters = sdp.ToRfcConfigParameters(); string serverKey = ConnectionManager.GetRfcConfigParametersHashCode(configParameters); if (configuredServerDestinationsByKey.ContainsKey(serverKey)) { return(serverKey); } configuredServerDestinationsByKey[serverKey] = configParameters; configuredServerDestinationsByConfig[configParameters] = serverKey; return(serverKey); } }
public override bool Equals(object obj) { ServerDestinationProperties sdp = (ServerDestinationProperties)obj; return (this.ServerID == sdp.ServerID && this.Client == sdp.Client && this.SystemNumber == sdp.SystemNumber && this.Server == sdp.Server && this.AliasUser == sdp.AliasUser && this.User == sdp.User && this.Password == sdp.Password && this.SapRouter == sdp.SapRouter && this.PoolSize == sdp.PoolSize && this.PeakLimit == sdp.PeakLimit && this.ExpirationTime == sdp.ExpirationTime && this.ExpirationPeriod == sdp.ExpirationPeriod && this.IdleCheckTime == sdp.IdleCheckTime && this.CodePage == sdp.CodePage && this.Language == sdp.Language && this.SsoTicket == sdp.SsoTicket); }