9.5 Adding New Protocol Handlers

Adding handlers to support new protocols is trivial; simply implement a new set of derived types based on WebRequest and WebResponse , implement the IWebRequestCreate interface on your WebRequest -derived type, and register it as a new protocol handler with the WebRequest.RegisterPrefix( ) at runtime. Once this is done, any code that uses the request/response architecture can access networked resources using the new URI format (and underlying protocol).



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net