Skip to content

Instantly share code, notes, and snippets.

@yemrekeskin
Created June 22, 2013 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yemrekeskin/5841488 to your computer and use it in GitHub Desktop.
Save yemrekeskin/5841488 to your computer and use it in GitHub Desktop.
Job class structure for processor class
public interface IJob
{
object[] Start(Parameters paramList = null);
}
public abstract class BaseJob
: IJob
{
public abstract object[] Start(Parameters paramList = null);
}
public class MainJob
: BaseJob
{
public override object[] Start(Parameters paramList = null)
{
try
{
// fact job operations
Console.WriteLine("Real Operational Job...");
}
catch (Exception ex)
{
return new object[] { ex.Message };
}
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment