Do you mean something like that?
using System; using System.Threading ; class AppCore : IDisposable { Timer TimerInstance ; string[] Args ; public AppCore( string[] args ) { if ( args == null ) throw new ArgumentNullException("args") ; this.TimerInstance = new Timer( Tick , null , new TimeSpan(0,0,30) , new TimeSpan(0,0,15) ) ; this.Args = args ; this.Cancelled = false ; this.Disposed = false ; return ; } public int Run() {
source share