async _readHosts() {
    if (this.hosts !== undefined) {
      return this.hosts;
    }
    const e = new CustomEvent('host-rules-list', {
      bubbles: true,
      composed: true,
      cancelable: true,
      detail: {}
    });
    this.dispatchEvent(e);
    if (!e.defaultPrevented) {
      this.hosts = [];
      return this.hosts;
    }
    const rules = await e.detail.result;
    this.hosts = rules || [];
    return rules;
  }
/**
   * Reads application hosts configuration and returns it.
   * It returns empty array of hosts couldn't be read.
   * @return {Promise<Array>}
   */
Reads application hosts configuration and returns it.
It returns empty array of hosts couldn't be read.
@return {Promise}
Reads application hosts configuration and returns it . It returns empty array of hosts couldn ' t be read . @return { Promise }
async _readHosts() {
    if (this.hosts !== undefined) {
      return this.hosts;
    }
    const e = new CustomEvent('host-rules-list', {
      bubbles: true,
      composed: true,
      cancelable: true,
      detail: {}
    });
    this.dispatchEvent(e);
    if (!e.defaultPrevented) {
      this.hosts = [];
      return this.hosts;
    }
    const rules = await e.detail.result;
    this.hosts = rules || [];
    return rules;
  }
async _readHosts ( ) { if ( this . hosts !== undefined ) { return this . hosts ; } const e = new CustomEvent ( 'host-rules-list' , { bubbles : true , composed : true , cancelable : true , detail : { } } ) ; this . dispatchEvent ( e ) ; if ( ! e . defaultPrevented ) { this . hosts = [ ] ; return this . hosts ; } const rules = await e . detail . result ; this . hosts = rules || [ ] ; return rules ; }
Reads application hosts configuration and returns it.
Reads application hosts configuration and returns it .