Skip to content

Commit 9d87ea1

Browse files
authored
Merge pull request #4018 from dotnet/publish-28254
Merge master into live
2 parents 27b4e20 + 9f97ed6 commit 9d87ea1

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

samples/snippets/csharp/VS_Snippets_CLR/TransactedInstaller/CS/transactedinstaller.cs

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ If the '/?' or '/help' option is provided then the help information is
1515
printed to the console.
1616
*/
1717

18+
// <Snippet1>
1819
using System;
1920
using System.ComponentModel;
2021
using System.Collections;
@@ -23,12 +24,9 @@ printed to the console.
2324

2425
public class TransactedInstaller_Example
2526
{
27+
// <Snippet2>
2628
public static void Main(String[] args)
2729
{
28-
// <Snippet1>
29-
// <Snippet2>
30-
// <Snippet3>
31-
// <Snippet4>
3230
ArrayList myOptions = new ArrayList();
3331
String myOption;
3432
bool toUnInstall = false;
@@ -73,13 +71,13 @@ public static void Main(String[] args)
7371
args[i]);
7472
return;
7573
}
76-
74+
7775
// Create a instance of 'AssemblyInstaller' that installs the given assembly.
7876
myAssemblyInstaller =
7977
new AssemblyInstaller(args[i],
8078
(string[]) myOptions.ToArray(typeof(string)));
8179
// Add the instance of 'AssemblyInstaller' to the 'TransactedInstaller'.
82-
myTransactedInstaller.Installers.Add(myAssemblyInstaller);
80+
myTransactedInstaller.Installers.Add(myAssemblyInstaller);
8381
}
8482
}
8583
// If user requested help or didn't provide any assemblies to install
@@ -105,13 +103,9 @@ public static void Main(String[] args)
105103
catch(Exception e)
106104
{
107105
Console.WriteLine("\nException raised : {0}", e.Message);
108-
}
109-
// </Snippet4>
110-
// </Snippet3>
111-
// </Snippet2>
112-
// </Snippet1>
106+
}
113107
}
114-
108+
115109
public static void PrintHelpMessage()
116110
{
117111
Console.WriteLine("Usage : TransactedInstaller [/u | /uninstall] [option [...]] assembly" +
@@ -120,4 +114,5 @@ public static void PrintHelpMessage()
120114
" the given assembly. If /u or /uninstall option" +
121115
" is given it uninstalls the assemblies.");
122116
}
123-
}
117+
}
118+
// </Snippet1>

snippets/System.Text/Rune/csharp/TrimNonLettersAndNonDigits.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static ReadOnlySpan<char> TrimNonLettersAndNonDigits(ReadOnlySpan<char> span)
4444

4545
return span;
4646
}
47-
// <SnippetExample>
47+
// </SnippetExample>
4848
}
4949
}
5050
}

xml/Microsoft.Extensions.Hosting/WindowsServiceLifetimeHostBuilderExtensions.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
<summary>Sets the host lifetime to WindowsServiceLifetime, sets the Content Root,
4444
and enables logging to the event log with the application name as the default source name.</summary>
4545
<returns>The same instance of the <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder" /> for chaining.</returns>
46-
<remarks>This is context aware and will only activate if it detects the process is running
47-
as a Windows Service.</remarks>
46+
<remarks>This is context aware and will only activate if it detects the process is running as a Windows Service.</remarks>
4847
</Docs>
4948
</Member>
5049
</Members>

0 commit comments

Comments
 (0)