Ejemplo n.º 1
0
        /// <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
            });
        }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerSelectionData" /> class.
 /// </summary>
 public ServerSelectionData()
 {
     _selectedServers = new ServerIdCollection();
 }