Ejemplo n.º 1
0
 /// <summary>
 /// 初始化Url参数生成器
 /// </summary>
 /// <param name="builder">参数生成器</param>
 public UrlParameterBuilder(ParameterBuilder builder, HttpRequest httpRequest = null)
 {
     ParameterBuilder = builder == null ? new ParameterBuilder() : new ParameterBuilder(builder);
     Request          = httpRequest;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 添加参数
 /// </summary>
 /// <param name="key">键</param>
 /// <param name="value">值</param>
 public UrlParameterBuilder Add(string key, object value)
 {
     ParameterBuilder.Add(key, value);
     return(this);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 获取值
 /// </summary>
 /// <param name="name">参数名</param>
 public object GetValue(string name)
 {
     return(ParameterBuilder.GetValue(name));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 初始化参数生成器
 /// </summary>
 /// <param name="builder">参数生成器</param>
 public ParameterBuilder(ParameterBuilder builder) : this(builder.GetDictionary())
 {
 }