/// <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;
 }
예제 #2
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;
		}
예제 #3
0
		/// <summary>
		/// Initializes a new instance of the UriBase class.
		/// </summary>
		/// <param name="uri"></param>
		public UriBase(UriBase uri)
		{
			Clear();
			ParseUri(uri.Uri);
		}
예제 #4
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;
		}