Ejemplo n.º 1
0
 static double getEndpointPrecedenceOrderByServiceType(IXrdsProviderEndpoint endpoint)
 {
     // The numbers returned from this method only need to compare against other numbers
     // from this method, which makes them arbitrary but relational to only others here.
     if (endpoint.IsTypeUriPresent(Protocol.v20.OPIdentifierServiceTypeURI))
     {
         return(0);
     }
     if (endpoint.IsTypeUriPresent(Protocol.v20.ClaimedIdentifierServiceTypeURI))
     {
         return(1);
     }
     if (endpoint.IsTypeUriPresent(Protocol.v11.ClaimedIdentifierServiceTypeURI))
     {
         return(2);
     }
     if (endpoint.IsTypeUriPresent(Protocol.v10.ClaimedIdentifierServiceTypeURI))
     {
         return(3);
     }
     return(10);
 }
Ejemplo n.º 2
0
		static double getEndpointPrecedenceOrderByServiceType(IXrdsProviderEndpoint endpoint) {
			// The numbers returned from this method only need to compare against other numbers
			// from this method, which makes them arbitrary but relational to only others here.
			if (endpoint.IsTypeUriPresent(Protocol.v20.OPIdentifierServiceTypeURI)) {
				return 0;
			}
			if (endpoint.IsTypeUriPresent(Protocol.v20.ClaimedIdentifierServiceTypeURI)) {
				return 1;
			}
			if (endpoint.IsTypeUriPresent(Protocol.v11.ClaimedIdentifierServiceTypeURI)) {
				return 2;
			}
			if (endpoint.IsTypeUriPresent(Protocol.v10.ClaimedIdentifierServiceTypeURI)) {
				return 3;
			}
			return 10;
		}