File tree Expand file tree Collapse file tree 4 files changed +545
-190
lines changed Expand file tree Collapse file tree 4 files changed +545
-190
lines changed Original file line number Diff line number Diff line change 1- import { DnsSrvRecord } from "../Dns/DnsSrvRecord" ;
2- import { AutodiscoverService } from "./AutodiscoverService" ;
3- /**@internal */
4- export class AutodiscoverDnsClient {
5- private service : AutodiscoverService ;
6- private static randomTieBreakerSelector : any ;
1+ import { DnsSrvRecord } from "../Dns/DnsSrvRecord" ;
2+ import { AutodiscoverService } from "./AutodiscoverService" ;
3+
4+ /**
5+ * @internal Class that reads AutoDiscover configuration information from DNS.
6+ */
7+ export class AutodiscoverDnsClient {
8+ //#region Constants
9+ /**
10+ * SRV DNS prefix to lookup.
11+ *
12+ * @static
13+ */
714 private static AutoDiscoverSrvPrefix : string = "_autodiscover._tcp." ;
15+
16+ /**
17+ * We are only interested in records that use SSL.
18+ *
19+ * @static
20+ */
821 private static SslPort : number = 443 ;
22+ //#endregion
23+
24+ /**
25+ * Random selector in the case of ties.
26+ *
27+ * @static
28+ */
29+ private static randomTieBreakerSelector : any ;
30+
31+ /**
32+ * AutodiscoverService using this DNS reader.
33+ */
34+ private service : AutodiscoverService ;
35+
36+ /**
37+ * Initializes a new instance of the **AutodiscoverDnsClient** class.
38+ *
39+ * @param {AutodiscoverService } service The service.
40+ */
41+ constructor ( service : AutodiscoverService ) {
42+ this . service = service ;
43+ }
44+
945 FindAutodiscoverHostFromSrv ( domain : string ) : string { throw new Error ( "AutodiscoverDnsClient.ts - FindAutodiscoverHostFromSrv : Not implemented." ) ; }
1046 FindBestMatchingSrvRecord ( domain : string ) : DnsSrvRecord { throw new Error ( "AutodiscoverDnsClient.ts - FindBestMatchingSrvRecord : Not implemented." ) ; }
1147}
You can’t perform that action at this time.
0 commit comments