public void InvokeAsyncResponse(System.Int32 Handle, System.Byte[] OutArgs, System.Int32 ErrorCode, System.String ErrorString, object _Tag, Delegate_OnResult_InvokeAsyncResponse _Callback) { UPnPArgument[] args = new UPnPArgument[4]; args[0] = new UPnPArgument("Handle", Handle); args[1] = new UPnPArgument("OutArgs", OutArgs); args[2] = new UPnPArgument("ErrorCode", ErrorCode); args[3] = new UPnPArgument("ErrorString", ErrorString); _S.InvokeAsync("InvokeAsyncResponse", args, new object[2]{_Tag,_Callback},new UPnPService.UPnPServiceInvokeHandler(Sink_InvokeAsyncResponse), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_InvokeAsyncResponse)); }
public void RemoveWeakEvent_Result_InvokeAsyncResponse(Delegate_OnResult_InvokeAsyncResponse d) { WeakReference[] WR = (WeakReference[])WeakList_InvokeAsyncResponse.ToArray(typeof(WeakReference)); foreach(WeakReference W in WR) { if(W.IsAlive) { if((Delegate_OnResult_InvokeAsyncResponse)W.Target == d) { WeakList_InvokeAsyncResponse.Remove(W); break; } } } }
public void AddWeakEvent_Result_InvokeAsyncResponse(Delegate_OnResult_InvokeAsyncResponse d) { WeakList_InvokeAsyncResponse.Add(new WeakReference(d)); }