提交 ef51192f 编写于 作者: R Ravi Chande

Fix up newlines

上级 aa2350b4
......@@ -13,6 +13,7 @@ internal sealed class SolutionEventMonitor : IDisposable
{
private GlobalOperationNotificationService _notificationService;
private Dictionary<string, GlobalOperationRegistration> _operations = new Dictionary<string, GlobalOperationRegistration>();
public SolutionEventMonitor(VisualStudioWorkspace workspace)
{
var notificationService = workspace.Services.GetService<IGlobalOperationNotificationService>() as GlobalOperationNotificationService;
......@@ -20,9 +21,10 @@ public SolutionEventMonitor(VisualStudioWorkspace workspace)
{
_notificationService = notificationService;
KnownUIContexts.SolutionBuildingContext.UIContextChanged += SolutionBuildingContextChanged;
KnownUIContexts.SolutionOpeningContext.UIContextChanged += SolutionOpeningContext_UIContextChanged;
KnownUIContexts.SolutionOpeningContext.UIContextChanged += SolutionOpeningContextChanged;
}
}
public void Dispose()
{
foreach (var globalOperation in _operations.Values)
......@@ -36,17 +38,20 @@ public void Dispose()
{
_notificationService = null;
KnownUIContexts.SolutionBuildingContext.UIContextChanged -= SolutionBuildingContextChanged;
KnownUIContexts.SolutionOpeningContext.UIContextChanged -= SolutionOpeningContextChanged;
}
}
private void SolutionBuildingContextChanged(object sender, UIContextChangedEventArgs e)
{
ContextChangedWorker(e, "Solution Building");
}
private void SolutionOpeningContext_UIContextChanged(object sender, UIContextChangedEventArgs e)
private void SolutionOpeningContextChanged(object sender, UIContextChangedEventArgs e)
{
ContextChangedWorker(e, "Solution Opening");
}
private void ContextChangedWorker(UIContextChangedEventArgs e, string operation)
{
if (_notificationService != null)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册