Beispiel #1
0
        public ReadOnlyUrl Clone(ReadOnlyQueryString queryString)
        {
            var url = Create();

            url.Copy(this, queryString);
            return(url);
        }
Beispiel #2
0
 private void SetQueryString(ReadOnlyQueryString queryString)
 {
     if (queryString != null && queryString.Count > 0)
     {
         EnsureOwningQueryString();
         _queryString.Set(queryString.Collection);
     }
 }
Beispiel #3
0
 public ApplicationUrl(string url, ReadOnlyQueryString queryString)
     : this(Application.Current, null, url, queryString)
 {
 }
Beispiel #4
0
 public ApplicationUrl(bool?secure, string url, ReadOnlyQueryString queryString)
     : this(Application.Current, secure, url, queryString)
 {
 }
Beispiel #5
0
 private ApplicationUrl(Application application, bool?secure, string url, ReadOnlyQueryString queryString)
     : base(application.GetAbsoluteUrl(url), queryString)
 {
     _state = new ApplicationUrlState(application, url);
     SetSecure(secure);
 }
Beispiel #6
0
 protected override void Copy(ReadOnlyUrl url, ReadOnlyQueryString queryString)
 {
     base.Copy(url, queryString);
     _state = ApplicationUrlState.Copy(url);
 }
Beispiel #7
0
 public Url(string url, ReadOnlyQueryString queryString)
     : base(url, queryString)
 {
 }
 public ReadOnlyApplicationUrl(bool?secure, ReadOnlyUrl url, string relativeUrl, ReadOnlyQueryString queryString)
     : base(url, relativeUrl, queryString)
 {
     _state = new ApplicationUrlState(url);
     SetSecure(secure);
 }
 public ReadOnlyApplicationUrl(ReadOnlyUrl url, string relativeUrl, ReadOnlyQueryString queryString)
     : this(null, url, relativeUrl, queryString)
 {
 }
Beispiel #10
0
 public new void Add(ReadOnlyQueryString queryString)
 {
     base.Add(queryString);
 }
Beispiel #11
0
 protected void Add(ReadOnlyQueryString queryString)
 {
     _collection.Add(queryString._collection);
 }
Beispiel #12
0
 protected ReadOnlyUrl(ReadOnlyUrl url, string relativeUrl, ReadOnlyQueryString queryString)
     : this(new Uri(new Uri(url.AbsoluteUri), new Uri(relativeUrl, UriKind.Relative)))
 {
     SetQueryString(queryString);
 }
Beispiel #13
0
 public ReadOnlyUrl(string url, ReadOnlyQueryString queryString)
     : this(url)
 {
     SetQueryString(queryString);
 }
Beispiel #14
0
 protected virtual void Copy(ReadOnlyUrl url, ReadOnlyQueryString queryString)
 {
     Copy(url);
     SetQueryString(queryString);
 }