Esempio n. 1
0
 public void CopyTo(UriBase uri)
 {
     this.Uri = uri.Uri;
 }
 /// <summary>
 /// Returns the endpoint URI of the channel definition.
 /// </summary>
 /// <returns>The endpoint URI representation of the channel definition.</returns>
 public UriBase GetUri()
 {
     if (_uri == null)
     {
         if (this.Endpoint != null)
         {
             if( this.Endpoint.Url != null )
                 _uri = new UriBase(this.Endpoint.Url);
             if (this.Endpoint.Uri != null)
                 _uri = new UriBase(this.Endpoint.Uri);
         }
     }
     return _uri;
 }
Esempio n. 3
0
 public UriBase(UriBase uri)
 {
     this.Clear();
     this.ParseUri(uri.Uri);
 }
Esempio n. 4
0
		/// <summary>
		/// Initializes a new instance of the UriBase class.
		/// </summary>
		/// <param name="uri"></param>
		public UriBase(UriBase uri)
		{
			Clear();
			ParseUri(uri.Uri);
		}
Esempio n. 5
0
		/// <summary>
		/// Copy content of this object into the given object.
		/// </summary>
		/// <param name="uri"></param>
		public void CopyTo(UriBase uri)
		{
			this.Uri = uri.Uri;
		}
Esempio n. 6
0
		/// <summary>
		/// Returns whether the value of the called object is equal to that of the given object.
		/// Equality here means if all the fields are the same.
		/// </summary>
		/// <param name="uri"></param>
		/// <returns></returns>
		public bool EqualTo(UriBase uri)
		{
			if( uri == null )
				return false;
			return this.Uri == uri.Uri;
		}
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the UriBase class.
 /// </summary>
 /// <param name="uri"></param>
 public UriBase(UriBase uri)
 {
     Clear();
     ParseUri(uri.Uri);
 }