|
40 | 40 | </Parameters>
|
41 | 41 | <Docs>
|
42 | 42 | <param name="hostEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment" />.</param>
|
43 |
| - <summary>Checks if the current host environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Development" />.</summary> |
| 43 | + <summary>Checks if the current host environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Development" />. This API should not be used in libraries, see remarks for details.</summary> |
44 | 44 | <returns>
|
45 | 45 | <see langword="true" /> if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Development" />; otherwise, <see langword="false" />.</returns>
|
46 |
| - <remarks>To be added.</remarks> |
| 46 | + <remarks> |
| 47 | + The environment names "Development", "Production" and "Staging" are provided as a utility for application developers. Library |
| 48 | + authors should avoid coupling specific behavior to these environment names. |
| 49 | + </remarks> |
47 | 50 | </Docs>
|
48 | 51 | </Member>
|
49 | 52 | <Member MemberName="IsEnvironment">
|
|
69 | 72 | <Docs>
|
70 | 73 | <param name="hostEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment" />.</param>
|
71 | 74 | <param name="environmentName">Environment name to validate against.</param>
|
72 |
| - <summary>Compares the current host environment name against the specified value.</summary> |
| 75 | + <summary>Compares the current host environment name against the specified value. Library authors should avoid using this API, see remarks for details.</summary> |
73 | 76 | <returns>
|
74 | 77 | <see langword="true" /> if the specified name is the same as the current environment; otherwise, <see langword="false" />.</returns>
|
75 |
| - <remarks>To be added.</remarks> |
| 78 | + <remarks> |
| 79 | + Environment names are generally specific to an application. Libraries designed for use in many different applications |
| 80 | + should avoid coupling behavior to specific environment names. |
| 81 | + </remarks> |
76 | 82 | </Docs>
|
77 | 83 | </Member>
|
78 | 84 | <Member MemberName="IsProduction">
|
|
96 | 102 | </Parameters>
|
97 | 103 | <Docs>
|
98 | 104 | <param name="hostEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment" />.</param>
|
99 |
| - <summary>Checks if the current host environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Production" />.</summary> |
| 105 | + <summary>Checks if the current host environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Production" />. This API should not be used in libraries, see remarks for details.</summary> |
100 | 106 | <returns>
|
101 | 107 | <see langword="true" /> if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Production" />; otherwise, <see langword="false" />.</returns>
|
102 |
| - <remarks>To be added.</remarks> |
| 108 | + <remarks> |
| 109 | + The environment names "Development", "Production" and "Staging" are provided as a utility for application developers. Library |
| 110 | + authors should avoid coupling specific behavior to these environment names. |
| 111 | + </remarks> |
103 | 112 | </Docs>
|
104 | 113 | </Member>
|
105 | 114 | <Member MemberName="IsStaging">
|
|
123 | 132 | </Parameters>
|
124 | 133 | <Docs>
|
125 | 134 | <param name="hostEnvironment">An instance of <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment" />.</param>
|
126 |
| - <summary>Checks if the current host environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Staging" />.</summary> |
| 135 | + <summary>Checks if the current host environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Staging" />. This API should not be used in libraries, see remarks for details.</summary> |
127 | 136 | <returns>
|
128 | 137 | <see langword="true" /> if the environment name is <see cref="F:Microsoft.Extensions.Hosting.EnvironmentName.Staging" />; otherwise, <see langword="false" />.</returns>
|
129 |
| - <remarks>To be added.</remarks> |
| 138 | + <remarks> |
| 139 | + The environment names "Development", "Production" and "Staging" are provided as a utility for application developers. Library |
| 140 | + authors should avoid coupling specific behavior to these environment names. |
| 141 | + </remarks> |
130 | 142 | </Docs>
|
131 | 143 | </Member>
|
132 | 144 | </Members>
|
|
0 commit comments