[ Version ( since = "3.6" ) ]
public Service? ref_service_by_url (URL url, ProviderType type)
Looks up a Service by trying to match its
URL against the given url
and then checking that the object is of the desired type
.
The service must have been previously added using add_service.
The returned Service is referenced for thread-safety and must be unreferenced with unref when finished with it.
Note this function is significantly slower than ref_service.
this |
a Session |
url |
a URL |
type |
a Service instance, or null |