Opc.Ua.Configuration.PseudoComServer.LoadConfiguredEndpoint C# (CSharp) Method

LoadConfiguredEndpoint() private static method

Reads the UA endpoint information associated the CLSID
private static LoadConfiguredEndpoint ( System.Guid clsid ) : ConfiguredEndpoint
clsid System.Guid The CLSID used to activate the COM server.
return ConfiguredEndpoint
        private static ConfiguredEndpoint LoadConfiguredEndpoint(Guid clsid)
        {
            ConfiguredEndpoint endpoint = LoadConfiguredEndpointFromFile(clsid);

            if (endpoint == null)
            {
                endpoint = LoadConfiguredEndpointFromRegistry(clsid);

                // save the endpoint from the registry to a file.
                if (endpoint != null)
                {
                    SaveConfiguredEndpointToFile(clsid, endpoint);
                }
            }

            return endpoint;
        }