public void GetStateTable(System.String DeviceUDN, System.String ServiceID, object _Tag, Delegate_OnResult_GetStateTable _Callback) { UPnPArgument[] args = new UPnPArgument[3]; args[0] = new UPnPArgument("DeviceUDN", DeviceUDN); args[1] = new UPnPArgument("ServiceID", ServiceID); args[2] = new UPnPArgument("Variables", ""); _S.InvokeAsync("GetStateTable", args, new object[2]{_Tag,_Callback},new UPnPService.UPnPServiceInvokeHandler(Sink_GetStateTable), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_GetStateTable)); }
public void RemoveWeakEvent_Result_GetStateTable(Delegate_OnResult_GetStateTable d) { WeakReference[] WR = (WeakReference[])WeakList_GetStateTable.ToArray(typeof(WeakReference)); foreach(WeakReference W in WR) { if(W.IsAlive) { if((Delegate_OnResult_GetStateTable)W.Target == d) { WeakList_GetStateTable.Remove(W); break; } } } }
public void AddWeakEvent_Result_GetStateTable(Delegate_OnResult_GetStateTable d) { WeakList_GetStateTable.Add(new WeakReference(d)); }