提交 40a9acf5 编写于 作者: C CyrusNajmabadi

No need for an async listener.

上级 957a38dd
......@@ -29,19 +29,14 @@ internal sealed class GoToImplementationCommandHandler : ICommandHandler<GoToImp
{
private readonly IWaitIndicator _waitIndicator;
private readonly IEnumerable<Lazy<IStreamingFindUsagesPresenter>> _streamingPresenters;
private readonly IAsynchronousOperationListener _asyncListener;
[ImportingConstructor]
public GoToImplementationCommandHandler(
IWaitIndicator waitIndicator,
[ImportMany] IEnumerable<Lazy<IStreamingFindUsagesPresenter>> streamingPresenters,
[ImportMany] IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners)
[ImportMany] IEnumerable<Lazy<IStreamingFindUsagesPresenter>> streamingPresenters)
{
_waitIndicator = waitIndicator;
_streamingPresenters = streamingPresenters;
_asyncListener = new AggregateAsynchronousOperationListener(
asyncListeners, FeatureAttribute.GoToImplementation);
}
public CommandState GetCommandState(GoToImplementationCommandArgs args, Func<CommandState> nextHandler)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册