NServiceBus.MsmqAddress.MakeCompatibleWith C# (CSharp) Method

MakeCompatibleWith() public method

public MakeCompatibleWith ( MsmqAddress other, string>.Func ipLookup ) : MsmqAddress
other MsmqAddress
ipLookup string>.Func
return MsmqAddress
        public MsmqAddress MakeCompatibleWith(MsmqAddress other, Func<string, string> ipLookup)
        {
            IPAddress _;
            if (IPAddress.TryParse(other.Machine, out _) && !IPAddress.TryParse(Machine, out _))
            {
                return new MsmqAddress(Queue, ipLookup(Machine));
            }
            return this;
        }