Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            if (_callbackInstance != null)
            {
                hashCode ^= _callbackInstance.GetHashCode();
            }

            Fx.Assert(_serviceEndpoint != null, "endpoint should not be null.");
            hashCode ^= _serviceEndpoint.GetHashCode();

            return(hashCode);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            if (_callbackInstance != null)
            {
                hashCode ^= _callbackInstance.GetHashCode();
            }

            Fx.Assert(_remoteAddress != null, "remoteAddress should not be null.");
            hashCode ^= _remoteAddress.GetHashCode();


            Fx.Assert(_binding != null, "binding should not be null.");
            hashCode ^= _binding.GetHashCode();

            return(hashCode);
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            if (_callbackInstance != null)
            {
                hashCode ^= _callbackInstance.GetHashCode();
            }

            Fx.Assert(_endpointConfigurationName != null, "endpointConfigurationName should not be null.");
            hashCode ^= _endpointConfigurationName.GetHashCode();

            if (_remoteAddress != null)
            {
                hashCode ^= _remoteAddress.GetHashCode();
            }

            return(hashCode);
        }