private void Execute()
{
try
{
this.IsRunning = true;
this.LastRunTime = DateTime.Now;
MethodInfo method = this.TaskType.GetMethod("Execute");
object[] arguments = { this.ConfigurationNode };
object obj = Activator.CreateInstance(this.TaskType);
method.Invoke(obj, new object[] { this.ConfigurationNode });
this.IsLastRunSuccessful = true;
}
catch
{
this.IsLastRunSuccessful = false;
}
finally
{
this.IsRunning = false;
}
}