public WorkerToken StartDedicatedWorker() { var token = _inner.StartDedicatedWorker(); _tokens.Add(token); return(token); }
public ISubscription <TPayload> BuildSubscription() { if (_useDedicatedThread) { _threadId = _workerPool.StartDedicatedWorker().ThreadId; } var subscription = GetOrCreateSubscriptionBase(); subscription = WrapSubscription(subscription); return(subscription); }
public IParticipant <TRequest, TResponse> BuildParticipant() { if (_useDedicatedThread) { _threadId = _workerPool.StartDedicatedWorker().ThreadId; } if (_funcReference == null) { throw new Exception("No actions defined"); } var participant = CreateParticipant(_funcReference, _dispatchType, _threadId, _name); participant = WrapParticipant(participant, _filter, _maxRequests); return(participant); }