public override List<SystemIdentifier> GetIdentifiers()
Public Overrides Function GetIdentifiers As List(Of SystemIdentifier)
public: virtual List<SystemIdentifier^>^ GetIdentifiers() override
The list contains a single ServerHostNameIdentifier object, which contains an identifier based on the fully qualified host name of the computer running the application.
Though it is not generally a frequent occurrence, users with administrative access to computers can change their name, which will change the identifier generated.
It is possible for this method to throw an System.Net.Sockets.SocketException if the system's host name cannot be resolved. This can be resolved by either adding an entry in the DNS server's zone file for the host running your application (if the DNS server used by the host can be managed by the same person or company using the host system), or by updating the hosts file (C:\Windows\System32\drivers\etc\hosts on Windows or /etc/hosts on Unix) to contain a fixed IP address for the system's host name. If you opt to edit the hosts file, adding the system's host name to an existing line could result in that line's first entry being returned for this algorithm. (For example, adding your system's host name to the end of the line for localhost would likely cause the algorithm to use localhost as the server host name.)