/// <summary> /// 释放资源 /// </summary> public void Dispose() { if (Interlocked.CompareExchange(ref isDisposed, 1, 0) == 0) { waitHandle.Set(); clientHandle.Set(); pub.Dispose(ref fileStream); } }
/// <summary> /// 回调处理 /// </summary> /// <param name="outputParameter">是否调用成功</param> public override void Callback(ref fastCSharp.net.returnValue outputParameter) { this.outputParameter = outputParameter.Type; //if (!outputParameter) log.Default.Add("异步调用失败(bool)", true, false); waitHandle.Set(); }