icinga2/base/scripttask.cpp

13 lines
304 B
C++
Raw Normal View History

2012-07-14 15:59:59 +02:00
#include "i2-base.h"
using namespace icinga;
2012-07-15 17:15:49 +02:00
ScriptTask::ScriptTask(const ScriptFunction::Ptr& function, const vector<Variant>& arguments)
: AsyncTask<ScriptTask, Variant>(), m_Function(function), m_Arguments(arguments)
2012-07-14 15:59:59 +02:00
{ }
void ScriptTask::Run(void)
{
m_Function->Invoke(GetSelf(), m_Arguments);
}