/// <summary>${mapping_DynamicISLayer_method_GetImageSource_D}</summary>
        /// <param name="onCompleted">${mapping_DynamicISLayer_method_GetImageSource_param_onCompleted}</param>
        protected virtual void GetImageSource(OnImageSourceCompleted onCompleted)
        {
            string imgUrl = this.GetImageUrl();
            if (string.IsNullOrEmpty(imgUrl))
            {
                onCompleted(null);
            }
            else
            {
                if (imgUrl.Length > 0)
                {
            #if SILVERLIGHT
                    if (Credential.CREDENTIAL.GetUrlParameters() != null)
                    {
                        imgUrl += "&" + Credential.CREDENTIAL.GetUrlParameters();
                    }

            #endif
                    BitmapImage imgSrc = null;
                    imgSrc = new BitmapImage
                      {
                          UriSource = new Uri(imgUrl, UriKind.Absolute),
                      };

                    onCompleted(imgSrc);
                }
            }
        }
 /// <summary>${WP_mapping_DynamicImageLayer_method_GetImageSource_D}</summary>
 /// <param name="onCompleted">${WP_mapping_DynamicImageLayer_method_GetImageSource_param_onCompleted}</param>
 protected virtual void GetImageSource(OnImageSourceCompleted onCompleted)
 {
     string imgUrl = this.GetImageUrl();
     if (string.IsNullOrEmpty(imgUrl))
     {
         onCompleted(null);
     }
     else
     {
         BitmapImage imgSrc = null;
         if (imgUrl.Length > 0)
         {
             imgSrc = new BitmapImage
               {
                   UriSource = new Uri(imgUrl, UriKind.Absolute),
               };
         }
         onCompleted(imgSrc);
     }
 }