internal RepMgrSite(DB_REPMGR_SITE site) { EId = site.eid; Address = new ReplicationHostAddress(site.host, site.port); isConnected = (site.status == DbConstants.DB_REPMGR_CONNECTED); isPeer = (site.flags & DbConstants.DB_REPMGR_PEER) != 0; }
internal RepMgrSite(DB_REPMGR_SITE site) { EId = site.eid; Address = new ReplicationHostAddress(site.host, site.port); maxAcknowledgedLSN = new LSN(site.max_ack_lsn.file, site.max_ack_lsn.offset); isConnected = (site.status == DbConstants.DB_REPMGR_CONNECTED); isElectable = (site.flags & DbConstants.DB_REPMGR_ISELECTABLE) != 0; isPeer = (site.flags & DbConstants.DB_REPMGR_ISPEER) != 0; isView = (site.flags & DbConstants.DB_REPMGR_ISVIEW) != 0; }