{System.Diagnostics.Debug.Assert(false,"Cannot create instances of this type on the server");
return"";
}
else
{
thrownewInvalidOperationException("This type has no read/write properties");
}
}
/// <summary>
/// The exportname to request over NBD. This holds details including an authentication token, so it must be protected appropriately. Clients should regard the exportname as an opaque string or token.
/// </summary>
publicvirtualstringexportname
{
get{return_exportname;}
set
{
if(!Helper.AreEqual(value,_exportname))
{
_exportname=value;
Changed=true;
NotifyPropertyChanged("exportname");
}
}
}
privatestring_exportname="";
/// <summary>
/// An address on which the server can be reached; this can be IPv4, IPv6, or a DNS name.
/// </summary>
publicvirtualstringaddress
{
get{return_address;}
set
{
if(!Helper.AreEqual(value,_address))
{
_address=value;
Changed=true;
NotifyPropertyChanged("address");
}
}
}
privatestring_address="";
/// <summary>
/// The TCP port
/// </summary>
publicvirtuallongport
{
get{return_port;}
set
{
if(!Helper.AreEqual(value,_port))
{
_port=value;
Changed=true;
NotifyPropertyChanged("port");
}
}
}
privatelong_port;
/// <summary>
/// The TLS certificate of the server
/// </summary>
publicvirtualstringcert
{
get{return_cert;}
set
{
if(!Helper.AreEqual(value,_cert))
{
_cert=value;
Changed=true;
NotifyPropertyChanged("cert");
}
}
}
privatestring_cert="";
/// <summary>
/// For convenience, this redundant field holds a DNS (hostname) subject of the certificate. This can be a wildcard, but only for a certificate that has a wildcard subject and no concrete hostname subjects.