public void ProcessAsync(QueryByCenterParameters parameters, object state)
{
if (parameters == null)
{
//TODO:资源
//throw new ArgumentNullException("QueryByCenterParameters");
throw new ArgumentNullException(ExceptionStrings.ArgumentIsNull);
}
if (parameters.CenterPoint.IsEmpty)
{
//TODO:资源
//throw new InvalidOperationException("CenterPoint is Empty");
throw new InvalidOperationException(ExceptionStrings.CenterPointIsEmpty);
}
if (string.IsNullOrEmpty(base.Url))
{
//TODO:资源
//throw new InvalidOperationException("Url is not set");
throw new InvalidOperationException(ExceptionStrings.InvalidUrl);
}
if (!base.Url.EndsWith("/"))
{
base.Url += '/';
}
base.SubmitRequest(base.Url + "commonhandler?", GetParameters(parameters),
new EventHandler<RequestEventArgs>(request_Completed), state, false);
}