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); }
public AsyncResource(ITickSchedulerFactory tickSchedulerFactory) { altVAsync = new AltVAsync(tickSchedulerFactory); }
public AsyncResource(ITickSchedulerFactory tickSchedulerFactory, bool forceAsyncBaseObjects = false) { altVAsync = new AltVAsync(tickSchedulerFactory); forceAsync = forceAsyncBaseObjects; }