History

GSF: Updated Sandcastle help files to latest version.

J. Ritchie Carroll committed 8 years ago

Commit 5d8dfde1 parent 06a5f733 files · +72 −53Browse files

Unified · Split

3 files
  1. Source/Documentation/AdapterHelp/AdapterHelp.shfbproj +4 −4
  2. Source/Documentation/GridSolutionsFrameworkHelp/GridSolutionsFrameworkHelp.shfbproj +41 −35
  3. Source/Libraries/GSF.Core/Diagnostics/ChildProcessManager.cs +27 −14
Source/Documentation/AdapterHelp/AdapterHelp.shfbproj+4−4
@@ -7,13 +7,13 @@ · 6 unmodified lines
77 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
88 <SchemaVersion>2.0</SchemaVersion>
99 <ProjectGuid>92b7fa59-4e8c-4ca8-a2ec-ebcd25aa49d2</ProjectGuid>
10− <SHFBSchemaVersion>2015.6.5.0</SHFBSchemaVersion>
10+ <SHFBSchemaVersion>2017.9.26.0</SHFBSchemaVersion>
1111 <!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual Studio adds them anyway -->
1212 <AssemblyName>AdapterHelp</AssemblyName>
1313 <RootNamespace>AdapterHelp</RootNamespace>
1414 <Name>AdapterHelp</Name>
1515 <!-- SHFB properties -->
16− <FrameworkVersion>.NET Framework 4.6</FrameworkVersion>
16+ <FrameworkVersion>.NET Framework 4.6.1</FrameworkVersion>
1717 <OutputPath>..\..\..\Build\Help\Adapters\</OutputPath>
1818 <HtmlHelpName>GSFTimeSeriesAdapters</HtmlHelpName>
1919 <Language>en-US</Language>
@@ -81,10 +81,10 @@ · 61 unmodified lines
8181 <FooterText>See &amp;lt%3ba href=&amp;quot%3bhttps://github.com/GridProtectionAlliance/gsf&amp;quot%3b&amp;gt%3bGrid Solutions Framework Project&amp;lt%3b/a&amp;gt%3b for latest code.</FooterText>
8282 <FeedbackEMailLinkText>GPA Development</FeedbackEMailLinkText>
8383 <FeedbackEMailAddress>rcarroll%40gridprotectionalliance.org</FeedbackEMailAddress>
84− <CopyrightText>Copyright &amp;#169%3b 2017, Grid Protection Alliance. All Rights Reserved.</CopyrightText>
84+ <CopyrightText>Copyright &amp;#169%3b 2018, Grid Protection Alliance. All Rights Reserved.</CopyrightText>
8585 <CopyrightHref>https://www.gridprotectionalliance.org/</CopyrightHref>
8686 <ContentPlacement>AboveNamespaces</ContentPlacement>
87− <VisibleItems>Attributes, InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected</VisibleItems>
87+ <VisibleItems>Attributes, InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable</VisibleItems>
8888 <ComponentConfigurations>
8989 <ComponentConfig id="API Token Resolution" enabled="True">
9090 <component id="API Token Resolution">{@TokenFiles}
Source/Documentation/GridSolutionsFrameworkHelp/GridSolutionsFrameworkHelp.shfbproj+41−35
@@ -7,13 +7,13 @@ · 6 unmodified lines
77 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
88 <SchemaVersion>2.0</SchemaVersion>
99 <ProjectGuid>0505f4c3-fcf9-4533-9181-f712889071d8</ProjectGuid>
10− <SHFBSchemaVersion>2015.6.5.0</SHFBSchemaVersion>
10+ <SHFBSchemaVersion>2017.9.26.0</SHFBSchemaVersion>
1111 <!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual Studio adds them anyway -->
1212 <AssemblyName>GridSolutionsFrameworkHelp</AssemblyName>
1313 <RootNamespace>GridSolutionsFrameworkHelp</RootNamespace>
1414 <Name>GridSolutionsFrameworkHelp</Name>
1515 <!-- SHFB properties -->
16− <FrameworkVersion>.NET Framework 4.6</FrameworkVersion>
16+ <FrameworkVersion>.NET Framework 4.6.1</FrameworkVersion>
1717 <OutputPath>..\..\..\Build\Help\</OutputPath>
1818 <HtmlHelpName>GridSolutionsFramework</HtmlHelpName>
1919 <Language>en-US</Language>
@@ -65,8 +65,9 @@ · 45 unmodified lines
6565 <MissingTags>AutoDocumentCtors, AutoDocumentDispose</MissingTags>
6666 <ApiFilter>
6767 <Filter entryType="Namespace" fullName="GSF.Annotations" isExposed="False" />
68−<Filter entryType="Namespace" fullName="XamlGeneratedNamespace" isExposed="False" /></ApiFilter>
69− <VisibleItems>Attributes, InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected</VisibleItems>
68+ <Filter entryType="Namespace" fullName="XamlGeneratedNamespace" isExposed="False" />
69+ </ApiFilter>
70+ <VisibleItems>Attributes, InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable</VisibleItems>
7071 <MaximumGroupParts>2</MaximumGroupParts>
7172 <NamespaceGrouping>False</NamespaceGrouping>
7273 <SyntaxFilters>C#, Visual Basic, Managed C++, F#, JavaScript</SyntaxFilters>
@@ -79,7 +80,7 @@ · 6 unmodified lines
7980 <FooterText>See &amp;lt%3ba href=&amp;quot%3bhttps://github.com/GridProtectionAlliance/gsf/&amp;quot%3b&amp;gt%3bGrid Solutions Framework Project&amp;lt%3b/a&amp;gt%3b for latest code.</FooterText>
8081 <FeedbackEMailLinkText>GPA Development</FeedbackEMailLinkText>
8182 <FeedbackEMailAddress>rcarroll%40gridprotectionalliance.org</FeedbackEMailAddress>
82− <CopyrightText>Copyright &amp;#169%3b 2017, Grid Protection Alliance. All Rights Reserved.</CopyrightText>
83+ <CopyrightText>Copyright &amp;#169%3b 2018, Grid Protection Alliance. All Rights Reserved.</CopyrightText>
8384 <CopyrightHref>https://www.gridprotectionalliance.org/</CopyrightHref>
8485 <ContentPlacement>AboveNamespaces</ContentPlacement>
8586 <NamespaceSummaries>
@@ -88,39 +89,44 @@ · 2 unmodified lines
8889 <ComponentConfigurations>
8990 <ComponentConfig id="Code Block Component" enabled="True">
9091 <component id="Code Block Component">
91− <basePath value="{@HtmlEncProjectFolder}" />
92− <outputPaths>{@HelpFormatOutputPaths}</outputPaths>
93− <allowMissingSource value="false" />
94− <removeRegionMarkers value="false" />
95− <colorizer syntaxFile="{@SHFBFolder}PresentationStyles\Colorizer\highlight.xml" styleFile="{@SHFBFolder}PresentationStyles\Colorizer\highlight.xsl" stylesheet="{@SHFBFolder}PresentationStyles\Colorizer\highlight.css" scriptFile="{@SHFBFolder}PresentationStyles\Colorizer\highlight.js" disabled="{@DisableCodeBlockComponent}" language="cs" tabSize="0" numberLines="false" outlining="false" keepSeeTags="false" defaultTitle="true" />
96−</component>
92+ <basePath value="{@HtmlEncProjectFolder}" />
93+ <outputPaths>{@HelpFormatOutputPaths}</outputPaths>
94+ <allowMissingSource value="false" />
95+ <removeRegionMarkers value="false" />
96+ <colorizer syntaxFile="{@SHFBFolder}PresentationStyles\Colorizer\highlight.xml" styleFile="{@SHFBFolder}PresentationStyles\Colorizer\highlight.xsl" stylesheet="{@SHFBFolder}PresentationStyles\Colorizer\highlight.css" scriptFile="{@SHFBFolder}PresentationStyles\Colorizer\highlight.js" disabled="{@DisableCodeBlockComponent}" language="cs" tabSize="0" numberLines="false" outlining="false" keepSeeTags="false" defaultTitle="true" />
97+ </component>
9798 </ComponentConfig>
98−<ComponentConfig id="API Token Resolution" enabled="True"><component id="API Token Resolution">{@TokenFiles}
99−<replace elements="/*//token" item="string(.)" /></component></ComponentConfig>
100−<ComponentConfig id="Syntax Component" enabled="True"><component id="Syntax Component">
101− <syntax input="/document/reference" output="/document/syntax" renderReferenceLinks="true" />
102− <generators>
99+ <ComponentConfig id="API Token Resolution" enabled="True">
100+ <component id="API Token Resolution">{@TokenFiles}
101+<replace elements="/*//token" item="string(.)" /></component>
102+ </ComponentConfig>
103+ <ComponentConfig id="Syntax Component" enabled="True">
104+ <component id="Syntax Component">
105+ <syntax input="/document/reference" output="/document/syntax" renderReferenceLinks="true" />
106+ <generators>
103107 {@SyntaxFilters}
104108 </generators>
105− <containerElement name="codeSnippetGroup" addNoExampleTabs="true" includeOnSingleSnippets="false" groupingEnabled="{@CodeSnippetGrouping}" />
106− <configurations>
107− <generator id="C#" />
108− <generator id="Visual Basic">
109− <includeLineContinuation value="false" />
110− </generator>
111− <generator id="Visual Basic Usage">
112− <includeLineContinuation value="false" />
113− </generator>
114− <generator id="Managed C++" />
115− <generator id="F#" />
116− <generator id="J#" />
117− <generator id="JScript" />
118− <generator id="JavaScript" />
119− <generator id="XAML Usage" />
120− <generator id="ASP.NET" />
121− <generator id="X#" />
122− </configurations>
123−</component></ComponentConfig></ComponentConfigurations>
109+ <containerElement name="codeSnippetGroup" addNoExampleTabs="true" includeOnSingleSnippets="false" groupingEnabled="{@CodeSnippetGrouping}" />
110+ <configurations>
111+ <generator id="C#" />
112+ <generator id="Visual Basic">
113+ <includeLineContinuation value="false" />
114+ </generator>
115+ <generator id="Visual Basic Usage">
116+ <includeLineContinuation value="false" />
117+ </generator>
118+ <generator id="Managed C++" />
119+ <generator id="F#" />
120+ <generator id="J#" />
121+ <generator id="JScript" />
122+ <generator id="JavaScript" />
123+ <generator id="XAML Usage" />
124+ <generator id="ASP.NET" />
125+ <generator id="X#" />
126+ </configurations>
127+ </component>
128+ </ComponentConfig>
129+ </ComponentConfigurations>
124130 <HelpFileVersion>2.0.0.0</HelpFileVersion>
125131 <RootNamespaceTitle>GSF Namespaces</RootNamespaceTitle>
126132 <SaveComponentCacheCapacity>100</SaveComponentCacheCapacity>
Source/Libraries/GSF.Core/Diagnostics/ChildProcessManager.cs+27−14
@@ -22,6 +22,7 @@ · 21 unmodified lines
2222 //******************************************************************************************************
2323
2424 using System;
25+using System.Collections.Generic;
2526 using System.Diagnostics;
2627 using System.Runtime.ConstrainedExecution;
2728 using System.Runtime.InteropServices;
@@ -115,6 +116,7 @@ namespace GSF.Diagnostics · 87 unmodified lines
115116 }
116117
117118 // Fields
119+ private List<WeakReference<Process>> m_childProcesses;
118120 private SafeJobHandle m_jobHandle;
119121 private bool m_disposed;
120122
@@ -127,25 +129,33 @@ namespace GSF.Diagnostics · 6 unmodified lines
127129 /// </summary>
128130 public ChildProcessManager()
129131 {
130− m_jobHandle = new SafeJobHandle(CreateJobObject(IntPtr.Zero, null));
131−
132− JOBOBJECT_BASIC_LIMIT_INFORMATION info = new JOBOBJECT_BASIC_LIMIT_INFORMATION
132+ if (Common.IsPosixEnvironment)
133133 {
134− LimitFlags = 0x2000
135− };
136−
137− JOBOBJECT_EXTENDED_LIMIT_INFORMATION extendedInfo = new JOBOBJECT_EXTENDED_LIMIT_INFORMATION
134+ // On non-Windows operating systems we just track associated processes
135+ m_childProcesses = new List<WeakReference<Process>>();
136+ }
137+ else
138138 {
139− BasicLimitInformation = info
140− };
139+ m_jobHandle = new SafeJobHandle(CreateJobObject(IntPtr.Zero, null));
141140
142− int length = Marshal.SizeOf(typeof(JOBOBJECT_EXTENDED_LIMIT_INFORMATION));
141+ JOBOBJECT_BASIC_LIMIT_INFORMATION info = new JOBOBJECT_BASIC_LIMIT_INFORMATION
142+ {
143+ LimitFlags = 0x2000
144+ };
143145
144− IntPtr extendedInfoPtr = Marshal.AllocHGlobal(length);
145− Marshal.StructureToPtr(extendedInfo, extendedInfoPtr, false);
146+ JOBOBJECT_EXTENDED_LIMIT_INFORMATION extendedInfo = new JOBOBJECT_EXTENDED_LIMIT_INFORMATION
147+ {
148+ BasicLimitInformation = info
149+ };
146150
147− if (!SetInformationJobObject(m_jobHandle, JobObjectInfoType.ExtendedLimitInformation, extendedInfoPtr, (uint)length))
148− throw new InvalidOperationException($"Unable to set information for ChildProcessManager job. Error: {Marshal.GetLastWin32Error()}");
151+ int length = Marshal.SizeOf(typeof(JOBOBJECT_EXTENDED_LIMIT_INFORMATION));
152+
153+ IntPtr extendedInfoPtr = Marshal.AllocHGlobal(length);
154+ Marshal.StructureToPtr(extendedInfo, extendedInfoPtr, false);
155+
156+ if (!SetInformationJobObject(m_jobHandle, JobObjectInfoType.ExtendedLimitInformation, extendedInfoPtr, (uint)length))
157+ throw new InvalidOperationException($"Unable to set information for ChildProcessManager job. Error: {Marshal.GetLastWin32Error()}");
158+ }
149159 }
150160
151161 #endregion
@@ -201,13 +211,16 @@ namespace GSF.Diagnostics · 49 unmodified lines
201211 private static extern IntPtr CreateJobObject(IntPtr hObject, string lpName);
202212
203213 [DllImport("kernel32", SetLastError = true)]
214+ [return: MarshalAs(UnmanagedType.Bool)]
204215 private static extern bool SetInformationJobObject(SafeJobHandle jobHandle, JobObjectInfoType infoType, IntPtr lpJobObjectInfo, uint cbJobObjectInfoLength);
205216
206217 [DllImport("kernel32", SetLastError = true)]
218+ [return: MarshalAs(UnmanagedType.Bool)]
207219 private static extern bool AssignProcessToJobObject(SafeJobHandle jobHandle, SafeProcessHandle process);
208220
209221 [DllImport("kernel32")]
210222 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
223+ [return: MarshalAs(UnmanagedType.Bool)]
211224 private static extern bool CloseHandle(IntPtr hObject);
212225 // ReSharper restore InconsistentNaming
213226

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t