/// <summary> /// Initializes a new instance of the <see cref="ServerSelectionData" /> class. /// </summary> /// <param name="selectedServer">The <see cref="ServerInfo" /> for the single selected server.</param> /// <exception cref="ArgumentNullException"><paramref name="selectedServer" /> is null.</exception> public ServerSelectionData(ServerInfo selectedServer) { if (selectedServer == null) { throw new ArgumentNullException(nameof(selectedServer)); } _selectedServers = new ServerIdCollection(new List <ServerInfo> { selectedServer }); }
/// <summary> /// Initializes a new instance of the <see cref="ServerSelectionData" /> class. /// </summary> /// <param name="selectedServers">A collection of <see cref="ServerInfo" /> for the selected servers.</param> /// <exception cref="ArgumentNullException"><paramref name="selectedServers" /> is null.</exception> public ServerSelectionData(IEnumerable <ServerInfo> selectedServers) { _selectedServers = new ServerIdCollection(selectedServers); }
/// <summary> /// Initializes a new instance of the <see cref="ServerSelectionData" /> class. /// </summary> public ServerSelectionData() { _selectedServers = new ServerIdCollection(); }