SuperMap.Web.Mapping.TiledCachedISLayer.mapService_Failed C# (CSharp) Method

mapService_Failed() private method

private mapService_Failed ( object sender, SmMapService args ) : void
sender object
args SmMapService
return void
        private void mapService_Failed(object sender , SmMapService.MapServiceFaultEventArgs args)
        {
            if (( ( args.Error is SecurityException ) && !Application.Current.Host.Source.Scheme.Equals(Uri.UriSchemeHttp) ) && !Application.Current.Host.Source.Scheme.Equals(Uri.UriSchemeHttps))
            {
                base.Error = new SecurityException(SuperMap.Web.Resources.ExceptionStrings.InvalidURISchemeHost , args.Error);
            }
            else
            {
                base.Error = args.Error;
            }
            base.Initialize();
        }