public AltVAsync(ITickSchedulerFactory tickSchedulerFactory) { mainThread = Thread.CurrentThread; if (mainThread.Name == "") { mainThread.Name = "main"; } scheduler = tickSchedulerFactory.Create(mainThread); AltAsync.Setup(this); TickDelegate = FirstTick; }
public AltVAsync(ITickSchedulerFactory tickSchedulerFactory) { mainThread = Thread.CurrentThread; if (mainThread.Name == "") { mainThread.Name = "main"; } scheduler = tickSchedulerFactory.Create(mainThread); taskFactory = new TaskFactory( CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskContinuationOptions.None, scheduler); AltAsync.Setup(this); }