Share via


ILocationService.LocationForCurrentConnection Method

Include Protected Members
Include Inherited Members

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method LocationForCurrentConnection(ServiceDefinition) Returns the ___location for the ServiceDefintion that should be used based on the current connection. This method will never return null or empty. If it succeeds it will return a targetable ___location for the provided ServiceDefinition. When determining what ___location to return for the ServiceDefinition and current connection the following rules will be applied: 1. Try to find a ___location for the ClientAccessMapping. 2. Try to find a ___location for the DefaultAccessMapping. 3. Use the first ___location in the LocationMappings list.
Public method LocationForCurrentConnection(String, Guid) Returns the ___location for the ServiceDefintion associated with the ServiceType and ServiceIdentifier that should be used based on the current connection. If a ServiceDefinition with the ServiceType and ServiceIdentifier does not exist then null will be returned. If a ServiceDefinition with the ServiceType and ServiceIdentifier is found then a ___location will be returned if the ServiceDefinition is well formed (otherwise an exception will be thrown). When determining what ___location to return for the ServiceDefinition and current connection the following rules will be applied: 1. Try to find a ___location for the ClientAccessMapping. 2. Try to find a ___location for the DefaultAccessMapping. 3. Use the first ___location in the LocationMappings list.

Top

See Also

Reference

ILocationService Interface

Microsoft.TeamFoundation.Framework.Client Namespace