OLD | NEW |
| (Empty) |
1 /// Copyright (c) Microsoft Corporation. All rights reserved. | |
2 | |
3 using System; | |
4 using Microsoft.VisualStudio.Shell.Interop; | |
5 using VSLangProj; | |
6 using Microsoft.VisualStudio; | |
7 | |
8 namespace Microsoft.VisualStudio.Project.Automation | |
9 { | |
10 public class OABuildManager : ConnectionPointContainer, | |
11 IEventSo
urce<_dispBuildManagerEvents>, | |
12 BuildMan
ager, | |
13 BuildMan
agerEvents | |
14 { | |
15 private ProjectNode projectManager; | |
16 | |
17 public OABuildManager(ProjectNode project) | |
18 { | |
19 projectManager = project; | |
20 AddEventSource<_dispBuildManagerEvents>(this as IEventSo
urce<_dispBuildManagerEvents>); | |
21 } | |
22 | |
23 | |
24 #region BuildManager Members | |
25 | |
26 public virtual string BuildDesignTimeOutput(string bstrOutputMon
iker) | |
27 { | |
28 throw new NotImplementedException(); | |
29 } | |
30 | |
31 public virtual EnvDTE.Project ContainingProject | |
32 { | |
33 get { return projectManager.GetAutomationObject() as Env
DTE.Project; } | |
34 } | |
35 | |
36 public virtual EnvDTE.DTE DTE | |
37 { | |
38 get { return projectManager.Site.GetService(typeof(EnvDT
E.DTE)) as EnvDTE.DTE; } | |
39 } | |
40 | |
41 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Desi
gn", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")] | |
42 public virtual object DesignTimeOutputMonikers | |
43 { | |
44 get { throw new NotImplementedException(); } | |
45 } | |
46 | |
47 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Desi
gn", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")] | |
48 public virtual object Parent | |
49 { | |
50 get { throw new NotImplementedException(); } | |
51 } | |
52 | |
53 #endregion | |
54 | |
55 #region _dispBuildManagerEvents_Event Members | |
56 | |
57 public event _dispBuildManagerEvents_DesignTimeOutputDeletedEven
tHandler DesignTimeOutputDeleted; | |
58 | |
59 public event _dispBuildManagerEvents_DesignTimeOutputDirtyEventH
andler DesignTimeOutputDirty; | |
60 | |
61 #endregion | |
62 | |
63 #region IEventSource<_dispBuildManagerEvents> Members | |
64 | |
65 void IEventSource<_dispBuildManagerEvents>.OnSinkAdded(_dispBuil
dManagerEvents sink) | |
66 { | |
67 DesignTimeOutputDeleted += new _dispBuildManagerEvents_D
esignTimeOutputDeletedEventHandler(sink.DesignTimeOutputDeleted); | |
68 DesignTimeOutputDirty += new _dispBuildManagerEvents_Des
ignTimeOutputDirtyEventHandler(sink.DesignTimeOutputDirty); | |
69 } | |
70 | |
71 void IEventSource<_dispBuildManagerEvents>.OnSinkRemoved(_dispBu
ildManagerEvents sink) | |
72 { | |
73 DesignTimeOutputDeleted -= new _dispBuildManagerEvents_D
esignTimeOutputDeletedEventHandler(sink.DesignTimeOutputDeleted); | |
74 DesignTimeOutputDirty -= new _dispBuildManagerEvents_Des
ignTimeOutputDirtyEventHandler(sink.DesignTimeOutputDirty); | |
75 } | |
76 | |
77 #endregion | |
78 } | |
79 } | |
OLD | NEW |