예제 #1
0
    /// <summary>
    /// 数据库服务器配置
    /// </summary>
    /// <param name="address">数据库服务器地址</param>
    public MagpieServerSettings(MagpieServerAddress address)
      : this()
    {
      if (address == null)
      {
        throw new ArgumentNullException("address");
      }

      _address = address;
    }
예제 #2
0
 private void Parse(string url)
 {
   _server = MagpieServerAddress.Create(url);
 }
예제 #3
0
 /// <summary>
 /// 数据库URL构造器
 /// </summary>
 public MagpieUrlBuilder()
 {
   _server = null;
 }
예제 #4
0
 /// <summary>
 /// 数据库服务器配置
 /// </summary>
 public MagpieServerSettings()
 {
   _address = null;
 }