Added ToString Method
This commit is contained in:
@@ -20,6 +20,16 @@ namespace Step.CmsConnectGateway
|
||||
public IPAddress defaultGatewayAddress { get; internal set; }
|
||||
public IEnumerable<IPAddress> dnsAddresses { get; internal set; }
|
||||
public IEnumerable<string> dnsPrefixes { get; internal set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "hasDhcp: " + hasDhcp + Environment.NewLine +
|
||||
"ipAddress: " + (ipAddress != null ? ipAddress.ToString() : "null") + Environment.NewLine +
|
||||
"netMaskAddress: " + (netMaskAddress != null ? netMaskAddress.ToString() : "null") + Environment.NewLine +
|
||||
"defaultGatewayAddress: " + (defaultGatewayAddress != null ? defaultGatewayAddress.ToString() : "null") + Environment.NewLine +
|
||||
"dnsAddresses: " + (dnsAddresses != null ? string.Join(",", dnsAddresses) : "null") + Environment.NewLine +
|
||||
"dnsPrefixes: " + (dnsPrefixes != null ? string.Join(",", dnsPrefixes) : "null");
|
||||
}
|
||||
}
|
||||
|
||||
public class GatewayProxyConfiguration
|
||||
@@ -31,5 +41,16 @@ namespace Step.CmsConnectGateway
|
||||
public string username { get; internal set; }
|
||||
public string password { get; internal set; }
|
||||
public IEnumerable<string> noproxyAddresses { get; internal set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
|
||||
return "hasProxy: " + hasProxy + Environment.NewLine +
|
||||
"address: " + (address != null ? address.ToString() : "null") + Environment.NewLine +
|
||||
"port: " + (port != 0 ? port.ToString() : "null") + Environment.NewLine +
|
||||
"username: " + (username != null ? username : "null") + Environment.NewLine +
|
||||
"password: " + (password != null ? password : "null") + Environment.NewLine +
|
||||
"noproxyAddresses: " + (noproxyAddresses != null ? string.Join(",", noproxyAddresses) : "null");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user