public override void Run() { Started(this, new PluginEventArgs(this, "Starting runnable")); int p = 20; if (config.GetParameter("value") != null) { p = Convert.ToInt32(config.GetParameter("value")); } for (int i = 0; i < p; i++) { Console.WriteLine(i); } Finished(this, new PluginEventArgs(this, "Finished runnable")); }