/// <summary>
 /// Установить параметры канала связи в соответствии с настройками
 /// </summary>
 public void SetCommCnlParams(SortedList <string, string> commCnlParams)
 {
     commCnlParams["Host"]           = ConnMode == ConnectionModes.Shared ? Host : "";
     commCnlParams["TcpPort"]        = TcpPort.ToString();
     commCnlParams["ReconnectAfter"] = ReconnectAfter.ToString();
     commCnlParams["StayConnected"]  = StayConnected.ToString();
     commCnlParams["Behavior"]       = Behavior.ToString();
     commCnlParams["ConnMode"]       = ConnMode.ToString();
 }
Exemple #2
0
 /// <summary>
 /// Adds the options to the list.
 /// </summary>
 public void AddToOptionList(OptionList options)
 {
     options.Clear();
     options["Host"]           = Host;
     options["TcpPort"]        = TcpPort.ToString();
     options["ReconnectAfter"] = ReconnectAfter.ToString();
     options["StayConnected"]  = StayConnected.ToLowerString();
     options["Behavior"]       = Behavior.ToString();
     options["ConnectionMode"] = ConnectionMode.ToString();
 }