@@ -27,7 +27,7 @@ interface IConfigurationClientManager {
2727
2828export class ConfigurationClientManager implements IConfigurationClientManager {
2929 isFailoverable : boolean ;
30- # endpoint: string ;
30+ endpoint : string ;
3131 #secret : string ;
3232 #id : string ;
3333 #credential: TokenCredential ;
@@ -54,21 +54,21 @@ export class ConfigurationClientManager implements IConfigurationClientManager {
5454 this . #secret = parseConnectionString ( connectionString , SecretSection ) ;
5555 this . #id = parseConnectionString ( connectionString , IdSection ) ;
5656 // TODO: need to check if it's CDN or not
57- this . # endpoint = parseConnectionString ( connectionString , EndpointSection ) ;
57+ this . endpoint = parseConnectionString ( connectionString , EndpointSection ) ;
5858
5959 } else if ( connectionStringOrEndpoint instanceof URL ) {
6060 const credential = credentialOrOptions as TokenCredential ;
6161 options = appConfigOptions as AzureAppConfigurationOptions ;
6262 this . #clientOptions = getClientOptions ( options ) ;
6363 staticClient = new AppConfigurationClient ( connectionStringOrEndpoint . toString ( ) , credential , this . #clientOptions) ;
64- this . # endpoint = connectionStringOrEndpoint . toString ( ) ;
64+ this . endpoint = connectionStringOrEndpoint . toString ( ) ;
6565 this . #credential = credential ;
6666 } else {
6767 throw new Error ( "A connection string or an endpoint with credential must be specified to create a client." ) ;
6868 }
6969
70- this . #staticClients = [ new ConfigurationClientWrapper ( this . # endpoint, staticClient ) ] ;
71- this . #validDomain = getValidDomain ( this . # endpoint) ;
70+ this . #staticClients = [ new ConfigurationClientWrapper ( this . endpoint , staticClient ) ] ;
71+ this . #validDomain = getValidDomain ( this . endpoint ) ;
7272 this . isFailoverable = ( options ?. replicaDiscoveryEnabled ?? true ) && isFailoverableEnv ( ) ;
7373 }
7474
@@ -80,7 +80,7 @@ export class ConfigurationClientManager implements IConfigurationClientManager {
8080 const currentTime = Date . now ( ) ;
8181 if ( this . #isFallbackClientDiscoveryDue( currentTime ) ) {
8282 this . #lastFallbackClientRefreshAttempt = currentTime ;
83- const host = new URL ( this . # endpoint) . hostname ;
83+ const host = new URL ( this . endpoint ) . hostname ;
8484 await this . #discoverFallbackClients( host ) ;
8585 }
8686
@@ -101,7 +101,7 @@ export class ConfigurationClientManager implements IConfigurationClientManager {
101101 if ( this . isFailoverable &&
102102 currentTime > new Date ( this . #lastFallbackClientRefreshAttempt + MinimalClientRefreshInterval ) . getTime ( ) ) {
103103 this . #lastFallbackClientRefreshAttempt = currentTime ;
104- const url = new URL ( this . # endpoint) ;
104+ const url = new URL ( this . endpoint ) ;
105105 await this . #discoverFallbackClients( url . hostname ) ;
106106 }
107107 }
@@ -129,7 +129,7 @@ export class ConfigurationClientManager implements IConfigurationClientManager {
129129 for ( const host of srvTargetHosts ) {
130130 if ( isValidEndpoint ( host , this . #validDomain) ) {
131131 const targetEndpoint = `https://${ host } ` ;
132- if ( targetEndpoint . toLowerCase ( ) === this . # endpoint. toLowerCase ( ) ) {
132+ if ( targetEndpoint . toLowerCase ( ) === this . endpoint . toLowerCase ( ) ) {
133133 continue ;
134134 }
135135 const client = this . #newConfigurationClient( targetEndpoint ) ;
0 commit comments