コード例 #1
0
 /// <summary>
 /// Create a SnppClientProtocol object pointing to a single unnamed configured server.
 /// </summary>
 public SnppClient()
     : this(SnppConfig.GetHost(null), SnppConfig.GetPort(null))
 {
     Client   = new SnppClientProtocol(null);
     LoginId  = SnppConfig.GetLoginId(null);
     Password = SnppConfig.GetPassword(null);
 }
コード例 #2
0
 /// <summary>
 /// Create a SnppClient object pointing to a named configured server.
 /// </summary>
 /// <param name="name">The name of the configured server.</param>
 public SnppClient(string name)
     : this(SnppConfig.GetHost(name), SnppConfig.GetPort(name))
 {
     Client   = new SnppClientProtocol(name);
     LoginId  = SnppConfig.GetLoginId(name);
     Password = SnppConfig.GetPassword(name);
 }