Skip to content

Commit 1a9742e

Browse files
committed
Merge branch 'master' into publish-8420
2 parents 17d9d33 + 59b9d50 commit 1a9742e

File tree

58 files changed

+427
-804
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+427
-804
lines changed

samples/snippets/csharp/VS_Snippets_CLR/CodeDomHelloWorldSample/cs/program.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@ class Program
1313
static string sourceFileName = "test.cs";
1414
static void Main(string[] args)
1515
{
16-
CodeDomProvider provider =
17-
CodeDomProvider.CreateProvider(providerName);
16+
CodeDomProvider provider = CodeDomProvider.CreateProvider(providerName);
1817

1918
LogMessage("Building CodeDOM graph...");
2019

2120
CodeCompileUnit cu = new CodeCompileUnit();
2221

2322
cu = BuildHelloWorldGraph();
2423

25-
//<Snippet5>
24+
//<Snippet5>
2625
StreamWriter sourceFile = new StreamWriter(sourceFileName);
2726
provider.GenerateCodeFromCompileUnit(cu, sourceFile, null);
2827
sourceFile.Close();
29-
//</Snippet5>
28+
//</Snippet5>
3029

3130
//<Snippet6>
3231
CompilerParameters opt = new CompilerParameters(new string[]{
@@ -59,8 +58,7 @@ static void Main(string[] args)
5958
}
6059

6160
//<Snippet2>
62-
// Build a Hello World program graph using
63-
// System.CodeDom types.
61+
// Build a Hello World program graph using System.CodeDom types.
6462
public static CodeCompileUnit BuildHelloWorldGraph()
6563
{
6664
// Create a new CodeCompileUnit to contain
@@ -82,9 +80,9 @@ public static CodeCompileUnit BuildHelloWorldGraph()
8280
class1.Comments.Add(new CodeCommentStatement("<summary>", true));
8381
class1.Comments.Add(new CodeCommentStatement(
8482
"Create a Hello World application.", true));
83+
class1.Comments.Add(new CodeCommentStatement("</summary>", true));
8584
class1.Comments.Add(new CodeCommentStatement(
8685
@"<seealso cref=" + '"' + "Class1.Main" + '"' + "/>", true));
87-
class1.Comments.Add(new CodeCommentStatement("</summary>", true));
8886

8987
// Add the new type to the namespace type collection.
9088
samples.Types.Add(class1);

samples/snippets/visualbasic/VS_Snippets_CLR/CodeDomHelloWorldSample/vb/program.vb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ Imports System.CodeDom.Compiler
44
Imports System.IO
55
Imports System.Text.RegularExpressions
66

7-
8-
97
Class Program
108
Private Shared providerName As String = "vb"
119
Private Shared sourceFileName As String = "test.vb"
@@ -21,7 +19,6 @@ Class Program
2119
cu = BuildHelloWorldGraph()
2220

2321
'<Snippet5>
24-
2522
Dim sourceFile As New StreamWriter(sourceFileName)
2623

2724
LogMessage("Generating code...")
@@ -56,7 +53,6 @@ Class Program
5653

5754
End Sub
5855

59-
6056
'<Snippet2>
6157
' Build a Hello World program graph using
6258
' System.CodeDom types.
@@ -80,10 +76,10 @@ Class Program
8076
class1.Comments.Add(New CodeCommentStatement("<summary>", True))
8177
class1.Comments.Add(New CodeCommentStatement( _
8278
"Create a Hello World application.", True))
79+
class1.Comments.Add(New CodeCommentStatement("</summary>", True))
8380
class1.Comments.Add(New CodeCommentStatement( _
8481
"<seealso cref=" & ControlChars.Quote & "Class1.Main" & _
8582
ControlChars.Quote & "/>", True))
86-
class1.Comments.Add(New CodeCommentStatement("</summary>", True))
8783

8884
' Add the new type to the namespace type collection.
8985
samples.Types.Add(class1)
@@ -139,7 +135,6 @@ Class Program
139135

140136
End Sub
141137

142-
143138
Shared Sub OutputResults(ByVal results As CompilerResults)
144139
LogMessage(("NativeCompilerReturnValue=" & _
145140
results.NativeCompilerReturnValue.ToString()))
@@ -150,4 +145,4 @@ Class Program
150145

151146
End Sub
152147
End Class
153-
'</Snippet1>
148+
'</Snippet1>

xml/Microsoft.Extensions.DependencyInjection/OptionsBuilderDataAnnotationsExtensions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</Base>
1717
<Interfaces />
1818
<Docs>
19-
<summary>Extension methods for adding configuration related options services to the DI container via <see cref="T:Microsoft.Extensions.Options.OptionsBuilder`1" />.</summary>
19+
<summary>Extension methods for adding configuration-related options services to the DI container via <see cref="T:Microsoft.Extensions.Options.OptionsBuilder`1" />.</summary>
2020
<remarks>To be added.</remarks>
2121
</Docs>
2222
<Members>
@@ -50,7 +50,7 @@
5050
<Docs>
5151
<typeparam name="TOptions">The options type to be configured.</typeparam>
5252
<param name="optionsBuilder">The options builder to add the services to.</param>
53-
<summary>Register this options instance for validation of its DataAnnotations.</summary>
53+
<summary>Registers this options instance for validation of its DataAnnotations.</summary>
5454
<returns>The <see cref="T:Microsoft.Extensions.Options.OptionsBuilder`1" /> so that additional calls can be chained.</returns>
5555
<remarks>To be added.</remarks>
5656
</Docs>

xml/Microsoft.Extensions.DependencyInjection/OptionsServiceCollectionExtensions.xml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<Docs>
8787
<typeparam name="TOptions">The options type to be configured.</typeparam>
8888
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add the services to.</param>
89-
<summary>Gets an options builder that forwards Configure calls for the same <typeparamref name="TOptions" /> to the underlying service collection.</summary>
89+
<summary>Gets an options builder that forwards <c>Configure</c> calls for the same named <typeparamref name="TOptions" /> to the underlying service collection.</summary>
9090
<returns>The <see cref="T:Microsoft.Extensions.Options.OptionsBuilder`1" /> so that configure calls can be chained in it.</returns>
9191
<remarks>To be added.</remarks>
9292
</Docs>
@@ -124,8 +124,8 @@
124124
<typeparam name="TOptions">The options type to be configured.</typeparam>
125125
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add the services to.</param>
126126
<param name="name">The name of the options instance.</param>
127-
<summary>Gets an options builder that forwards Configure calls for the same named <typeparamref name="TOptions" /> to the underlying service collection.</summary>
128-
<returns>The <see cref="T:Microsoft.Extensions.Options.OptionsBuilder`1" /> so that configure calls can be chained in it.</returns>
127+
<summary>Gets an options builder that forwards <c>Configure</c> calls for the same named <typeparamref name="TOptions" /> to the underlying service collection.</summary>
128+
<returns>The <see cref="T:Microsoft.Extensions.Options.OptionsBuilder`1" /> so that <c>Configure</c> calls can be chained in it.</returns>
129129
<remarks>To be added.</remarks>
130130
</Docs>
131131
</Member>
@@ -165,8 +165,7 @@
165165
<typeparam name="TOptions">The options type to be configured.</typeparam>
166166
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add the services to.</param>
167167
<param name="configureOptions">The action used to configure the options.</param>
168-
<summary>Registers an action used to configure a particular type of options.
169-
Note: These are run before all <seealso cref="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.PostConfigure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})" />.</summary>
168+
<summary>Registers an action used to configure a particular type of options. These are run before <see cref="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.PostConfigure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})" />.</summary>
170169
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> so that additional calls can be chained.</returns>
171170
<remarks>To be added.</remarks>
172171
</Docs>
@@ -207,8 +206,7 @@
207206
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add the services to.</param>
208207
<param name="name">The name of the options instance.</param>
209208
<param name="configureOptions">The action used to configure the options.</param>
210-
<summary>Registers an action used to configure a particular type of options.
211-
Note: These are run before all <seealso cref="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.PostConfigure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})" />.</summary>
209+
<summary>Registers an action used to configure a particular type of options. These are run before <see cref="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.PostConfigure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})" />.</summary>
212210
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> so that additional calls can be chained.</returns>
213211
<remarks>To be added.</remarks>
214212
</Docs>
@@ -277,7 +275,7 @@
277275
<Docs>
278276
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add the services to.</param>
279277
<param name="configureInstance">The instance that will configure options.</param>
280-
<summary>Registers an object that will have all of its I[Post]ConfigureOptions registered.</summary>
278+
<summary>Registers an object that will have all of its <c>I[Post]ConfigureOptions</c> registered.</summary>
281279
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> so that additional calls can be chained.</returns>
282280
<remarks>To be added.</remarks>
283281
</Docs>
@@ -307,7 +305,7 @@
307305
<Docs>
308306
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add the services to.</param>
309307
<param name="configureType">The type that will configure options.</param>
310-
<summary>Registers a type that will have all of its I[Post]ConfigureOptions registered.</summary>
308+
<summary>Registers a type that will have all of its <c>I[Post]ConfigureOptions</c> registered.</summary>
311309
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> so that additional calls can be chained.</returns>
312310
<remarks>To be added.</remarks>
313311
</Docs>
@@ -343,7 +341,7 @@
343341
<Docs>
344342
<typeparam name="TConfigureOptions">The type that will configure options.</typeparam>
345343
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add the services to.</param>
346-
<summary>Registers a type that will have all of its I[Post]ConfigureOptions registered.</summary>
344+
<summary>Registers a type that will have all of its <c>I[Post]ConfigureOptions</c> registered.</summary>
347345
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> so that additional calls can be chained.</returns>
348346
<remarks>To be added.</remarks>
349347
</Docs>
@@ -382,8 +380,7 @@
382380
<typeparam name="TOptions">The options type to be configured.</typeparam>
383381
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add the services to.</param>
384382
<param name="configureOptions">The action used to configure the options.</param>
385-
<summary>Registers an action used to initialize a particular type of options.
386-
Note: These are run after all <seealso cref="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.Configure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})" />.</summary>
383+
<summary>Registers an action used to initialize a particular type of options. These are run after <see cref="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.Configure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})" />.</summary>
387384
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> so that additional calls can be chained.</returns>
388385
<remarks>To be added.</remarks>
389386
</Docs>
@@ -424,8 +421,7 @@
424421
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add the services to.</param>
425422
<param name="name">The name of the options instance.</param>
426423
<param name="configureOptions">The action used to configure the options.</param>
427-
<summary>Registers an action used to configure a particular type of options.
428-
Note: These are run after all <seealso cref="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.Configure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})" />.</summary>
424+
<summary>Registers an action used to configure a particular type of options. These are run after <see cref="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.Configure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})" />.</summary>
429425
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> so that additional calls can be chained.</returns>
430426
<remarks>To be added.</remarks>
431427
</Docs>
@@ -464,8 +460,7 @@
464460
<typeparam name="TOptions">The options type to be configured.</typeparam>
465461
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add the services to.</param>
466462
<param name="configureOptions">The action used to configure the options.</param>
467-
<summary>Registers an action used to post configure all instances of a particular type of options.
468-
Note: These are run after all <seealso cref="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.Configure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})" />.</summary>
463+
<summary>Registers an action used to post configure all instances of a particular type of options. These are run after <see cref="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.Configure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})" />.</summary>
469464
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> so that additional calls can be chained.</returns>
470465
<remarks>To be added.</remarks>
471466
</Docs>

0 commit comments

Comments
 (0)