discover_sync


Description:

public SourceAuthenticationResult discover_sync (string? calendar_url, string? contacts_url, NamedParameters credentials, out string? out_certificate_pem, out TlsCertificateFlags? out_certificate_errors, Cancellable? cancellable = null) throws Error

This function is usually called in EBackend:EWebDAVCollectionBackend:authenticate_sync() implementation of the descendant, causing discovery of CalDAV and CardDAV sources on given URLs.

If either of calendar_url and contacts_url is null, that that part is skipped. The calendar_url covers all calendars, memo lists and task lists.

The function also takes care of authenticate_children on success.

Parameters:

this

an WebDAVCollectionBackend

calendar_url

a URL to search calendars at, or null

contacts_url

a URL to search contacts at, or null

credentials

credentials to use when running the discovery

out_certificate_pem

optional return location for a server SSL certificate in PEM format, when the operation failed with an SSL error

out_certificate_errors

optional TlsCertificateFlags, with certificate error flags when the operation failed with SSL error

cancellable

optional Cancellable object, or null

Returns:

an SourceAuthenticationResult describing whether discovery on given addresses succeeded.