Skip to content

Commit 36f68f3

Browse files
Port missing docs for GA (#8478)
* Microsoft.Extensions.Options * Microsoft.Extensions.Primitives * System.Security.Cryptography * System.Runtime.Intrinsics * Apply suggestions from code review Co-authored-by: Genevieve Warren <[email protected]> Co-authored-by: carlossanlop <[email protected]> Co-authored-by: Genevieve Warren <[email protected]>
1 parent 892bcc5 commit 36f68f3

23 files changed

+242
-35
lines changed

xml/Microsoft.Extensions.Options/IConfigureNamedOptions`1.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
</Interface>
3131
</Interfaces>
3232
<Docs>
33-
<typeparam name="TOptions">
34-
</typeparam>
33+
<typeparam name="TOptions">The options type being configured.</typeparam>
3534
<summary>Represents something that configures the <typeparamref name="TOptions" /> type.</summary>
3635
<remarks>To be added.</remarks>
3736
</Docs>

xml/Microsoft.Extensions.Options/IConfigureOptions`1.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
</TypeParameters>
2929
<Interfaces />
3030
<Docs>
31-
<typeparam name="TOptions">
32-
</typeparam>
31+
<typeparam name="TOptions">The options type being configured.</typeparam>
3332
<summary>Represents something that configures the <typeparamref name="TOptions" /> type.
3433
Note: These are run before all <see cref="T:Microsoft.Extensions.Options.IPostConfigureOptions`1" />.</summary>
3534
<remarks>To be added.</remarks>

xml/Microsoft.Extensions.Options/IOptionsFactory`1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
<Parameter Name="name" Type="System.String" />
6868
</Parameters>
6969
<Docs>
70-
<param name="name">To be added.</param>
70+
<param name="name">The name of the <typeparamref name="TOptions" /> instance to create.</param>
7171
<summary>Returns a configured <typeparamref name="TOptions" /> instance with the given name.</summary>
72-
<returns>To be added.</returns>
72+
<returns>The created <typeparamref name="TOptions" /> instance with the given <paramref name="name" />.</returns>
7373
<remarks>To be added.</remarks>
7474
</Docs>
7575
</Member>

xml/Microsoft.Extensions.Options/IOptionsMonitor`1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
<Parameter Name="name" Type="System.String" Index="0" FrameworkAlternate="dotnet-plat-ext-2.0;dotnet-plat-ext-2.1;dotnet-plat-ext-2.2;dotnet-plat-ext-3.0;dotnet-plat-ext-3.1;dotnet-plat-ext-5.0;dotnet-plat-ext-6.0;dotnet-plat-ext-7.0" />
9494
</Parameters>
9595
<Docs>
96-
<param name="name">To be added.</param>
96+
<param name="name">The name of the <typeparamref name="TOptions" /> instance, if a <see langword="null" /> <see cref="F:Microsoft.Extensions.Options.Options.DefaultName" /> is used.</param>
9797
<summary>Returns a configured <typeparamref name="TOptions" /> instance with the given name.</summary>
98-
<returns>To be added.</returns>
98+
<returns>The <typeparamref name="TOptions" /> instance that matches the given <paramref name="name" />.</returns>
9999
<remarks>To be added.</remarks>
100100
</Docs>
101101
</Member>

xml/Microsoft.Extensions.Options/IOptionsSnapshot`1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
<Parameter Name="name" Type="System.String" Index="0" FrameworkAlternate="dotnet-plat-ext-2.0;dotnet-plat-ext-2.1;dotnet-plat-ext-2.2;dotnet-plat-ext-3.0;dotnet-plat-ext-3.1;dotnet-plat-ext-5.0;dotnet-plat-ext-6.0;dotnet-plat-ext-7.0" />
7777
</Parameters>
7878
<Docs>
79-
<param name="name">To be added.</param>
79+
<param name="name">The name of the <typeparamref name="TOptions" /> instance, if <see langword="null" /> <see cref="F:Microsoft.Extensions.Options.Options.DefaultName" /> is used.</param>
8080
<summary>Returns a configured <typeparamref name="TOptions" /> instance with the given name.</summary>
81-
<returns>To be added.</returns>
81+
<returns>The <typeparamref name="TOptions" /> instance that matches the given <paramref name="name" />.</returns>
8282
<remarks>To be added.</remarks>
8383
</Docs>
8484
</Member>

xml/Microsoft.Extensions.Options/OptionsBuilder`1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402
<Docs>
403403
<param name="configureOptions">The action used to configure the options.</param>
404404
<summary>Registers an action used to configure a particular type of options. These are run after all <see cref="M:Microsoft.Extensions.Options.OptionsBuilder`1.Configure(System.Action{`0})" />.</summary>
405-
<returns>To be added.</returns>
405+
<returns>The current <see cref="T:Microsoft.Extensions.Options.OptionsBuilder`1" />.</returns>
406406
<remarks>To be added.</remarks>
407407
</Docs>
408408
</Member>

xml/Microsoft.Extensions.Options/OptionsFactory`1.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,12 @@
139139
<Parameter Name="name" Type="System.String" />
140140
</Parameters>
141141
<Docs>
142-
<param name="name">To be added.</param>
142+
<param name="name">The name of the <typeparamref name="TOptions" /> instance to create.</param>
143143
<summary>Returns a configured <typeparamref name="TOptions" /> instance with the given <paramref name="name" />.</summary>
144-
<returns>To be added.</returns>
144+
<returns>The created <typeparamref name="TOptions" /> instance with the given <paramref name="name" />.</returns>
145145
<remarks>To be added.</remarks>
146+
<exception cref="T:Microsoft.Extensions.Options.OptionsValidationException">One or more <see cref="T:Microsoft.Extensions.Options.IValidateOptions`1" /> return failed <see cref="T:Microsoft.Extensions.Options.ValidateOptionsResult" /> when validating the <typeparamref name="TOptions" /> instance being created.</exception>
147+
<exception cref="T:System.MissingMethodException">The <typeparamref name="TOptions" /> does not have a public parameterless constructor or <typeparamref name="TOptions" /> is <see langword="abstract" />.</exception>
146148
</Docs>
147149
</Member>
148150
<Member MemberName="CreateInstance">
@@ -166,10 +168,11 @@
166168
<Parameter Name="name" Type="System.String" Index="0" FrameworkAlternate="dotnet-plat-ext-5.0;dotnet-plat-ext-6.0;dotnet-plat-ext-7.0" />
167169
</Parameters>
168170
<Docs>
169-
<param name="name">To be added.</param>
171+
<param name="name">The name of the <typeparamref name="TOptions" /> instance to create.</param>
170172
<summary>Creates a new instance of a <typeparamref name="TOptions" /> object using the specified <paramref name="name" />.</summary>
171173
<returns>A <typeparamref name="TOptions" /> instance.</returns>
172174
<remarks>To be added.</remarks>
175+
<exception cref="T:System.MissingMethodException">The <typeparamref name="TOptions" /> does not have a public parameterless constructor or <typeparamref name="TOptions" /> is <see langword="abstract" />.</exception>
173176
</Docs>
174177
</Member>
175178
</Members>

xml/Microsoft.Extensions.Options/OptionsManager`1.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,12 @@
139139
<Parameter Name="name" Type="System.String" Index="0" FrameworkAlternate="dotnet-plat-ext-2.0;dotnet-plat-ext-2.1;dotnet-plat-ext-2.2;dotnet-plat-ext-3.0;dotnet-plat-ext-3.1;dotnet-plat-ext-5.0;dotnet-plat-ext-6.0;dotnet-plat-ext-7.0" />
140140
</Parameters>
141141
<Docs>
142-
<param name="name">To be added.</param>
142+
<param name="name">The name of the <typeparamref name="TOptions" /> instance, if a <see langword="null" /> <see cref="F:Microsoft.Extensions.Options.Options.DefaultName" /> is used.</param>
143143
<summary>Returns a configured <typeparamref name="TOptions" /> instance with the given <paramref name="name" />.</summary>
144-
<returns>To be added.</returns>
144+
<returns>The <typeparamref name="TOptions" /> instance that matches the given <paramref name="name" />.</returns>
145145
<remarks>To be added.</remarks>
146+
<exception cref="T:Microsoft.Extensions.Options.OptionsValidationException">One or more <see cref="T:Microsoft.Extensions.Options.IValidateOptions`1" /> return failed <see cref="T:Microsoft.Extensions.Options.ValidateOptionsResult" /> when validating the <typeparamref name="TOptions" /> instance been created.</exception>
147+
<exception cref="T:System.MissingMethodException">The <typeparamref name="TOptions" /> does not have a public parameterless constructor or <typeparamref name="TOptions" /> is <see langword="abstract" />.</exception>
146148
</Docs>
147149
</Member>
148150
<Member MemberName="Value">

xml/Microsoft.Extensions.Options/OptionsMonitorExtensions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
<Parameter Name="listener" Type="System.Action&lt;TOptions&gt;" />
6464
</Parameters>
6565
<Docs>
66-
<typeparam name="TOptions">To be added.</typeparam>
67-
<param name="monitor">The IOptionsMonitor.</param>
66+
<typeparam name="TOptions">The type of options instance being monitored.</typeparam>
67+
<param name="monitor">The options monitor.</param>
6868
<param name="listener">The action to be invoked when <typeparamref name="TOptions" /> has changed.</param>
6969
<summary>Registers a listener to be called whenever <typeparamref name="TOptions" /> changes.</summary>
7070
<returns>An <see cref="T:System.IDisposable" /> which should be disposed to stop listening for changes.</returns>

xml/Microsoft.Extensions.Options/OptionsMonitor`1.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@
144144
<summary>The present value of the options.</summary>
145145
<value>To be added.</value>
146146
<remarks>To be added.</remarks>
147+
<exception cref="T:Microsoft.Extensions.Options.OptionsValidationException">One or more <see cref="T:Microsoft.Extensions.Options.IValidateOptions`1" /> return failed <see cref="T:Microsoft.Extensions.Options.ValidateOptionsResult" /> when validating the <typeparamref name="TOptions" /> instance been created.</exception>
148+
<exception cref="T:System.MissingMethodException">The <typeparamref name="TOptions" /> does not have a public parameterless constructor or <typeparamref name="TOptions" /> is <see langword="abstract" />.</exception>
147149
</Docs>
148150
</Member>
149151
<Member MemberName="Dispose">
@@ -204,10 +206,12 @@
204206
<Parameter Name="name" Type="System.String" Index="0" FrameworkAlternate="dotnet-plat-ext-2.0;dotnet-plat-ext-2.1;dotnet-plat-ext-2.2;dotnet-plat-ext-3.0;dotnet-plat-ext-3.1;dotnet-plat-ext-5.0;dotnet-plat-ext-6.0;dotnet-plat-ext-7.0" />
205207
</Parameters>
206208
<Docs>
207-
<param name="name">To be added.</param>
209+
<param name="name">The name of the <typeparamref name="TOptions" /> instance, if a <see langword="null" /> <see cref="F:Microsoft.Extensions.Options.Options.DefaultName" /> is used.</param>
208210
<summary>Returns a configured <typeparamref name="TOptions" /> instance with the given <paramref name="name" />.</summary>
209-
<returns>To be added.</returns>
211+
<returns>The <typeparamref name="TOptions" /> instance that matches the given <paramref name="name" />.</returns>
210212
<remarks>To be added.</remarks>
213+
<exception cref="T:Microsoft.Extensions.Options.OptionsValidationException">One or more <see cref="T:Microsoft.Extensions.Options.IValidateOptions`1" /> return failed <see cref="T:Microsoft.Extensions.Options.ValidateOptionsResult" /> when validating the <typeparamref name="TOptions" /> instance been created.</exception>
214+
<exception cref="T:System.MissingMethodException">The <typeparamref name="TOptions" /> does not have a public parameterless constructor or <typeparamref name="TOptions" /> is <see langword="abstract" />.</exception>
211215
</Docs>
212216
</Member>
213217
<Member MemberName="OnChange">

0 commit comments

Comments
 (0)