OpenIDE.EventListener.EventEndpointLocator.GetInstance C# (CSharp) Méthode

GetInstance() public méthode

public GetInstance ( string path ) : Instance
path string
Résultat Instance
        public Instance GetInstance(string path)
        {
            var instances = getInstances(path);
            return instances.Where(x => path.StartsWith(x.Key) && canConnectTo(x))
                .OrderByDescending(x => x.Key.Length)
                .FirstOrDefault();
        }