public static Redshift StartContinuous(string path, RedshiftQuitHandler onRedshiftQuit = null, params string[] Args) { InitializeContinuousStart(path, Args); if (onRedshiftQuit != null) { Instance.OnRedshiftQuit += onRedshiftQuit; } SystemEvents.SessionEnding -= Instance.SystemEvents_SessionEnding; Instance.Start(); SystemEvents.SessionEnding += Instance.SystemEvents_SessionEnding; return(Instance); }
public static Redshift StartContinuous(string path, RedshiftQuitHandler onRedshiftQuit = null, params string[] Args) { InitializeContinuousStart(path, Args); if(onRedshiftQuit != null) { Instance.OnRedshiftQuit += onRedshiftQuit; } SystemEvents.SessionEnding -= Instance.SystemEvents_SessionEnding; Instance.Start(); SystemEvents.SessionEnding += Instance.SystemEvents_SessionEnding; return Instance; }