|
using System.Configuration;
namespace WCFServiceHost
{
public class ServiceConfig : ConfigurationSection
{
[ConfigurationProperty( "service" )]
public ServiceConfigItem Service
{
get
{
return ( base[ "service" ] as ServiceConfigItem );
}
}
}
public class ServiceConfigItem : ConfigurationElement
{
// host name or ip address
[ConfigurationProperty( "host", IsRequired = true )]
public string Host
{
get
{
return ( base[ "host" ] as string );
}
}
// port to listen
[ConfigurationProperty( "port", IsRequired = true )]
public string Port
{
get
{
return ( base[ "port" ] as string );
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Born in Hungary, got my first computer at age 12 (C64 with tape and joystick). Also got a book with it about 6502 assembly, that on its back has a motto, said 'Try yourself!'. I believe this is my beginning...
Started to learn - formally - in connection to mathematics an physics, by writing basic and assembly programs demoing theorems and experiments.
After moving to Israel learned two years in college and got a software engineering degree, I still have somewhere...
Since 1997 I do development for living. I used 286 assembly, COBOL, C/C++, Magic, Pascal, Visual Basic, C#, JavaScript, HTML, CSS, PHP, ASP, ASP.NET, C# and some more buzzes.
Since 2005 I have to find spare time after kids go bed, which means can't sleep to much, but much happier this way...
Free tools I've created for you...