提交 371efb39 编写于 作者: H Heejae Chang

make sure event is subscribed after all required fields are set

上级 b22dd84a
......@@ -46,7 +46,6 @@ private partial class WorkCoordinator
_listener = listener;
_optionService = _registration.GetService<IOptionService>();
_optionService.OptionChanged += OnOptionChanged;
// event and worker queues
_shutdownNotificationSource = new CancellationTokenSource();
......@@ -74,6 +73,9 @@ private partial class WorkCoordinator
_registration.Workspace.DocumentOpened += OnDocumentOpened;
_registration.Workspace.DocumentClosed += OnDocumentClosed;
}
// subscribe to option changed event
_optionService.OptionChanged += OnOptionChanged;
}
public int CorrelationId
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册