很奇怪,我之前用cs调用第三方的dll里的回调函数正常,然后写到webservice里面后,回调函数始终进不去,这句是调用回调
ar = equMan.BeginAsynGetEqus("", AsyncGetEquipProc, true);
下面是
private void AsyncGetEquipProc(IAsyncResult ar)
{
if (ar != null && ar is IAsynGetResult<EquipmentInfo>)
{
IAsynGetResult<EquipmentInfo> tmpAr = (IAsynGetResult<EquipmentInfo>)ar;
if (tmpAr.Modes != null)
{
return;
}
}
(equMan as IDisposable).Dispose();
}
新开一个网页调用第三方库文件,然后网页调用webservice写入数据到webservice里面去就行了