icinga2/base/scripttask.cpp

13 lines
300 B
C++
Raw Normal View History

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