How to create an action of my C# program function?

Topics: Examples, Setup
Nov 6, 2013 at 4:25 PM
Hi there,

I am trying to use the Task Scheduler Managed Wrapper to schedule runing one of my C# function. Is that possible to do? and how? The example shows how to schedule an exe as the following:
            td.Actions.Add(new ExecAction("notepad.exe", "c:\\test.log", null));
But can I schedule to run one of my functions in the same C# program?


Nov 6, 2013 at 11:50 PM
You can either create an executable that accepts parameters as a means to call your method or you can create a COM Handler using my template ( as an independent DLL assembly that contains your method and then use the COMHandlerAction to invoke it from the task.