17 using System.Configuration;
 
   27         private static ConfigurationProperty _server;
 
   28         private static ConfigurationProperty _port;
 
   29         private static ConfigurationPropertyCollection _properties;
 
   33             _server = 
new ConfigurationProperty(
"server", typeof(
string),
 
   34                 null, ConfigurationPropertyOptions.IsRequired);
 
   35             _port = 
new ConfigurationProperty(
"port", typeof(
int),
 
   36                 5050, ConfigurationPropertyOptions.IsRequired);
 
   38             _properties = 
new ConfigurationPropertyCollection();
 
   39             _properties.Add(_server);
 
   40             _properties.Add(_port);
 
   47         [ConfigurationProperty(
"server", DefaultValue = 
"", IsKey = 
true, IsRequired = 
true)]
 
   50             get { 
return (
string)base[_server]; }
 
   57         [ConfigurationProperty(
"port", IsKey = 
false, IsRequired = 
true)]
 
   60             get { 
return (
int)base[_port]; }
 
   63         protected override ConfigurationPropertyCollection Properties
 
   65             get { 
return _properties; }
 
int Port
The port from a server-port pair in 
.exe.config.  
string Server
The server from a server-port pair in 
.exe.config.  
An AccuRev repository server-port pair in 
.exe.config.