Initializes a new instance of the StreamLink class,
using configuration data in an XML file at the specified URI.
Declaration Syntax
Parameters
- configurationFile (Uri)
- The configuration file.
Remarks
The URI parameter can be the location of a remote file
using an http:// url or a local file using a file:/// url:
or
CopyC#
Uri uriToRttpConfiguration = new Uri("http://www.example.com/RttpConfiguration.xml"); StreamLink myStreamLink = new StreamLink(uriToRttpConfiguration);
CopyC#
Uri uriToRttpConfiguration = new Uri("file:///c:/conf/RttpConfiguration.xml"); StreamLink myStreamLink = new StreamLink(uriToRttpConfiguration);
For full information on the syntax and semantics of the StreamLink configuration XML see the Caplin document "StreamLink Configuration XML Reference". The syntax is also formally defined in the XML schema, ServiceConfiguration.xsd, located in the StreamLink installation folder.
Thread Safety
In StreamLink for Silverlight This constructor should not be called on the UI Thread. This constructor attempts to download the
configurationFile on the current thread. If the current thread is the UI thread the
browser will hang and the download will fail.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | reader is null |
ConfigurationErrorsException | The configuration is invalid |