public static void TrackServerChanges() { while (true) { IEnumerable <string> documentServers = RoutingTable.GetServerAdressesByRoleName(RoleEnvironmentConfig.DocumentServerRoleName); FarmConfigurationManager.UpdateServersRegistration(documentServers, RoleEnvironmentConfig.DocumentServerPort); Thread.Sleep(FarmConfigurationUpdateInterval); } }