Files
TeslaSuite/Console/TeslaConsole/AsyncDelegates.cs
T
CydandClaude Opus 4.8 548550b312 Initial commit: TeslaSuite monorepo (TeslaConsole + TeslaLauncher)
Co-locate the two cockpit-pod projects into a single repository:

- Console/  : TeslaConsole, the net48 WinForms operator console (decompiled
              reconstruction) plus its differential + catalog test suite.
- Launcher/ : TeslaLauncher, the net6 pod-side Service + Agent rewrite.

Adds a combined TeslaSuite.sln, root README documenting the shared wire
contract (and its current duplication, the main follow-up), and a root
.gitignore. Histories were not preserved per request; this is a fresh start
from the current working state of both projects.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 14:43:28 -05:00

27 lines
632 B
C#

using System.Threading;
namespace TeslaConsole;
public class AsyncDelegates<T>
{
public T Worker;
public SendOrPostCallback OnProgressReport;
public SendOrPostCallback OnCompleted;
public SendOrPostCallback CompletionMethod;
public AsyncDelegates(SendOrPostCallback completed, SendOrPostCallback completionMethod)
: this((SendOrPostCallback)null, completed, completionMethod)
{
}
public AsyncDelegates(SendOrPostCallback progressReport, SendOrPostCallback completed, SendOrPostCallback completionMethod)
{
OnProgressReport = progressReport;
OnCompleted = completed;
CompletionMethod = completionMethod;
}
}