|
44 | 44 | </Parameters>
|
45 | 45 | <Docs>
|
46 | 46 | <param name="hostingEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostingEnvironment" />.</param>
|
47 |
| - <summary>Checks if the current hosting environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Development" />.</summary> |
| 47 | + <summary>Checks if the current hosting environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Development" />. This API should not be used in libraries, see remarks for details.</summary> |
48 | 48 | <returns>
|
49 | 49 | <see langword="true" /> if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Development" />; otherwise, <see langword="false" />.</returns>
|
50 |
| - <remarks>To be added.</remarks> |
| 50 | + <remarks> |
| 51 | + The environment names "Development", "Production" and "Staging" are provided as a utility for application developers. Library |
| 52 | + authors should avoid coupling specific behavior to these environment names. |
| 53 | + </remarks> |
51 | 54 | </Docs>
|
52 | 55 | </Member>
|
53 | 56 | <Member MemberName="IsEnvironment">
|
|
75 | 78 | <Docs>
|
76 | 79 | <param name="hostingEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostingEnvironment" />.</param>
|
77 | 80 | <param name="environmentName">Environment name to validate against.</param>
|
78 |
| - <summary>Compares the current hosting environment name against the specified value.</summary> |
| 81 | + <summary>Compares the current hosting environment name against the specified value. Library authors should avoid using this API, see remarks for details.</summary> |
79 | 82 | <returns>
|
80 | 83 | <see langword="true" /> if the specified name is the same as the current environment; otherwise, <see langword="false" />.</returns>
|
81 |
| - <remarks>To be added.</remarks> |
| 84 | + <remarks> |
| 85 | + Environment names are generally specific to an application. Libraries designed for use in many different applications |
| 86 | + should avoid coupling behavior to specific environment names. |
| 87 | + </remarks> |
82 | 88 | </Docs>
|
83 | 89 | </Member>
|
84 | 90 | <Member MemberName="IsProduction">
|
|
104 | 110 | </Parameters>
|
105 | 111 | <Docs>
|
106 | 112 | <param name="hostingEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostingEnvironment" />.</param>
|
107 |
| - <summary>Checks if the current hosting environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Production" />.</summary> |
| 113 | + <summary>Checks if the current hosting environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Production" />. This API should not be used in libraries, see remarks for details.</summary> |
108 | 114 | <returns>
|
109 | 115 | <see langword="true" /> if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Production" />; otherwise, <see langword="false" />.</returns>
|
110 |
| - <remarks>To be added.</remarks> |
| 116 | + <remarks> |
| 117 | + The environment names "Development", "Production" and "Staging" are provided as a utility for application developers. Library |
| 118 | + authors should avoid coupling specific behavior to these environment names. |
| 119 | + </remarks> |
111 | 120 | </Docs>
|
112 | 121 | </Member>
|
113 | 122 | <Member MemberName="IsStaging">
|
|
133 | 142 | </Parameters>
|
134 | 143 | <Docs>
|
135 | 144 | <param name="hostingEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostingEnvironment" />.</param>
|
136 |
| - <summary>Checks if the current hosting environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Staging" />.</summary> |
| 145 | + <summary>Checks if the current hosting environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Staging" />. This API should not be used in libraries, see remarks for details.</summary> |
137 | 146 | <returns>
|
138 | 147 | <see langword="true" /> if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Staging" />; otherwise, <see langword="false" />.</returns>
|
139 |
| - <remarks>To be added.</remarks> |
| 148 | + <remarks> |
| 149 | + The environment names "Development", "Production" and "Staging" are provided as a utility for application developers. Library |
| 150 | + authors should avoid coupling specific behavior to these environment names. |
| 151 | + </remarks> |
140 | 152 | </Docs>
|
141 | 153 | </Member>
|
142 | 154 | </Members>
|
|
0 commit comments