public string Action(string actionName, string actionParameters) { LogActivityStart(ActivityMessageTypes.Commands, "Action ({0}):"); CheckDevice(); string retval = Service.Action(actionName, actionParameters); LogActivityEnd(ActivityMessageTypes.Commands, "returned {0}", retval); return(retval); }