public void Setup(ActorDescriptor descriptor) { if (_actorDescriptor != null) { throw new InvalidOperationException("Cannot call Setup twice."); } _actorDescriptor = descriptor; _poller = new AsyncPoller(descriptor.Interval, (Func <CancellationToken, Task <bool> >)Process); }