C# Class wpf_player.PortValidationRule

Validator used in peer configurator. This check if port is in uses or not and if it is a valid port or not.
Inheritance: System.Windows.Controls.ValidationRule
Mostra file Open project: zencoders/sambatyon

Public Methods

Method Description
PortValidationRule ( ) : System

Default constructor

Validate ( object value, System cultureInfo ) : System.Windows.Controls.ValidationResult

Validates the port value. It checks if the port number is valid (it is in the range [1024,65535]) and if it's already in use (if this check is enabled).

Method Details

PortValidationRule() public method

Default constructor
public PortValidationRule ( ) : System
return System

Validate() public method

Validates the port value. It checks if the port number is valid (it is in the range [1024,65535]) and if it's already in use (if this check is enabled).
public Validate ( object value, System cultureInfo ) : System.Windows.Controls.ValidationResult
value object Value to validate
cultureInfo System Unused Param
return System.Windows.Controls.ValidationResult