Created
June 22, 2013 16:31
-
-
Save yemrekeskin/5841488 to your computer and use it in GitHub Desktop.
Job class structure for processor class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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