/// <summary>
 /// Starts the client process.
 /// </summary>
 /// <exception cref="System.Exception">Missing configuration file or wrong directory</exception>
 public void StartClientProcess()
 {
     if (!File.Exists(ConfigurationFilePath))
     {
         throw new Exception("Missing configuration file or wrong directory");
     }
     this.ElementConfigurator = new ElementConfigurator(this.ConfigurationFilePath);
     this.ClientNode = ElementConfigurator.ConfigureNode();
     if (this.ClientNode.GetStreamData() != null && this.ClientNode.GetStreamData().Count != 0)
     {
         if (StreamsCreated != null)
             StreamsCreated();
     }
 }
Пример #2
0
 /// <summary>
 /// Starts the client process.
 /// </summary>
 /// <exception cref="System.Exception">Missing configuration file or wrong directory</exception>
 public void StartClientProcess()
 {
     if (!File.Exists(ConfigurationFilePath))
     {
         throw new Exception("Missing configuration file or wrong directory");
     }
     this.ElementConfigurator = new ElementConfigurator(this.ConfigurationFilePath);
     this.ClientNode          = ElementConfigurator.ConfigureNode();
     if (this.ClientNode.GetStreamData() != null && this.ClientNode.GetStreamData().Count != 0)
     {
         if (StreamsCreated != null)
         {
             StreamsCreated();
         }
     }
 }