public void execOrder(List<UPnPArg> argList) { var args = new UPnPEventArgs(argList, action); CallBack cb = new CallBack(CallBackFunction); EventContainer.RaiseActionEvent(this, args, cb); timer.Elapsed += ConnectionTimedOut; timer.Interval = 30000; //UPnP Default timeout is 30 seconds timer.Enabled = true; }
public static void RaiseActionEvent(object e, UPnPEventArgs args, CallBack cb) { TcpActionEvent(e, args, cb); }