private mapService_Fault ( object sender, |
||
sender | object | |
args | ||
return | void |
private void mapService_Fault(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();
}