public void Start() { spanProcessor.Start(); taskFactory.Expect(x => x.CreateAndStart(Arg <Action> .Matches(y => ValidateStartAction(y, spanProcessor)))); }
public virtual void Start() { TaskHelper.Execute(syncObj, () => !IsStarted, () => { spanProcessor.Start(); IsStarted = true; }); }