AspNetCompatibilityRequirementsAttribute.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Type Name="AspNetCompatibilityRequirementsAttribute" FullName="System.ServiceModel.Activation.AspNetCompatibilityRequirementsAttribute">
  3. <TypeSignature Language="C#" Value="public sealed class AspNetCompatibilityRequirementsAttribute : Attribute, System.ServiceModel.Description.IServiceBehavior" />
  4. <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit AspNetCompatibilityRequirementsAttribute extends System.Attribute implements class System.ServiceModel.Description.IServiceBehavior" />
  5. <AssemblyInfo>
  6. <AssemblyName>System.ServiceModel</AssemblyName>
  7. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  8. </AssemblyInfo>
  9. <Base>
  10. <BaseTypeName>System.Attribute</BaseTypeName>
  11. </Base>
  12. <Interfaces>
  13. <Interface>
  14. <InterfaceName>System.ServiceModel.Description.IServiceBehavior</InterfaceName>
  15. </Interface>
  16. </Interfaces>
  17. <Attributes>
  18. <Attribute>
  19. <AttributeName>System.AttributeUsage(System.AttributeTargets.Class)</AttributeName>
  20. </Attribute>
  21. </Attributes>
  22. <Docs>
  23. <remarks>
  24. <attribution license="cc4" from="Microsoft" modified="false" />
  25. <para>When applied to a service implementation class, this attribute indicates whether this service requires or supports vstecasp compatibility mode to be enabled for the hosting application domain (AppDomain).</para>
  26. <para>AppDomains hosting indigo2 services can run in two different hosting modes:</para>
  27. <list type="bullet">
  28. <item>
  29. <para>Mixed Transports Mode (Default): In this mode, indigo2 services do not participate in the vstecasp HTTP pipeline. This guarantees that a indigo2 service behaves consistently, independent of hosting environment and transport.</para>
  30. </item>
  31. <item>
  32. <para>vstecasp Compatibility Mode: In this mode, indigo2 services participate in the vstecasp HTTP pipeline in a manner similar to ASMX services. vstecasp features such as File Authorization, UrlAuthorization, and HTTP Session State are applicable to indigo2 services running in this mode.</para>
  33. </item>
  34. </list>
  35. <para>The hosting mode is controlled by the application-level configuration flag aspNetCompatibilityEnabled.</para>
  36. <para> &lt;system.serviceModel&gt;</para>
  37. <para> &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true"/&gt;</para>
  38. <para> &lt;/system.serviceModel&gt;</para>
  39. <para>This flag is false by default and thus indigo2 services run in the Mixed Transports Mode unless you explicitly opt into the vstecasp compatibility mode. </para>
  40. <para>crabout vstecasp compatibility mode, see <format type="text/html"><a href="4f8a7c4f-e735-4987-979a-b74fcdae2652">serviceHostingEnvironment</a></format>. </para>
  41. <para>Use the <see cref="P:System.ServiceModel.Activation.AspNetCompatibilityRequirementsAttribute.RequirementsMode" /> property to do this. At runtime, applications can detect if vstecasp compatibility mode is enabled by checking the value of the static property <see cref="P:System.ServiceModel.ServiceHostingEnvironment.AspNetCompatibilityEnabled" />.</para>
  42. </remarks>
  43. <summary>
  44. <attribution license="cc4" from="Microsoft" modified="false" />
  45. <para>Applied to a indigo1 service to indicate whether that service can be run in vstecasp compatibility code.</para>
  46. </summary>
  47. </Docs>
  48. <Members>
  49. <Member MemberName=".ctor">
  50. <MemberSignature Language="C#" Value="public AspNetCompatibilityRequirementsAttribute ();" />
  51. <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
  52. <MemberType>Constructor</MemberType>
  53. <AssemblyInfo>
  54. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  55. </AssemblyInfo>
  56. <Parameters />
  57. <Docs>
  58. <remarks>To be added.</remarks>
  59. <summary>
  60. <attribution license="cc4" from="Microsoft" modified="false" />
  61. <para>Initializes a new instance of the <see cref="T:System.ServiceModel.Activation.AspNetCompatibilityRequirementsAttribute" /> class. </para>
  62. </summary>
  63. </Docs>
  64. </Member>
  65. <Member MemberName="RequirementsMode">
  66. <MemberSignature Language="C#" Value="public System.ServiceModel.Activation.AspNetCompatibilityRequirementsMode RequirementsMode { get; set; }" />
  67. <MemberSignature Language="ILAsm" Value=".property instance valuetype System.ServiceModel.Activation.AspNetCompatibilityRequirementsMode RequirementsMode" />
  68. <MemberType>Property</MemberType>
  69. <AssemblyInfo>
  70. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  71. </AssemblyInfo>
  72. <ReturnValue>
  73. <ReturnType>System.ServiceModel.Activation.AspNetCompatibilityRequirementsMode</ReturnType>
  74. </ReturnValue>
  75. <Docs>
  76. <value>To be added.</value>
  77. <remarks>
  78. <attribution license="cc4" from="Microsoft" modified="false" />
  79. <para>Use the <see cref="P:System.ServiceModel.Activation.AspNetCompatibilityRequirementsAttribute.RequirementsMode" /> property to set the hosting mode in code. This can also be done by setting an application-level configuration flag aspNetCompatibilityEnabled. crdefault <format type="text/html"><a href="4f8a7c4f-e735-4987-979a-b74fcdae2652">serviceHostingEnvironment</a></format>. </para>
  80. <para>At runtime, applications can detect whether vstecasp compatibility mode is enabled by checking the value of the static property <see cref="P:System.ServiceModel.ServiceHostingEnvironment.AspNetCompatibilityEnabled" />. </para>
  81. </remarks>
  82. <summary>
  83. <attribution license="cc4" from="Microsoft" modified="false" />
  84. <para>Gets or sets the level of vstecasp compatibility required by the service.</para>
  85. </summary>
  86. </Docs>
  87. </Member>
  88. <Member MemberName="System.ServiceModel.Description.IServiceBehavior.AddBindingParameters">
  89. <MemberSignature Language="C#" Value="void IServiceBehavior.AddBindingParameters (System.ServiceModel.Description.ServiceDescription description, System.ServiceModel.ServiceHostBase serviceHostBase, System.Collections.ObjectModel.Collection&lt;System.ServiceModel.Description.ServiceEndpoint&gt; endpoints, System.ServiceModel.Channels.BindingParameterCollection parameters);" />
  90. <MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.ServiceModel.Description.IServiceBehavior.AddBindingParameters(class System.ServiceModel.Description.ServiceDescription description, class System.ServiceModel.ServiceHostBase serviceHostBase, class System.Collections.ObjectModel.Collection`1&lt;class System.ServiceModel.Description.ServiceEndpoint&gt; endpoints, class System.ServiceModel.Channels.BindingParameterCollection parameters) cil managed" />
  91. <MemberType>Method</MemberType>
  92. <AssemblyInfo>
  93. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  94. </AssemblyInfo>
  95. <ReturnValue>
  96. <ReturnType>System.Void</ReturnType>
  97. </ReturnValue>
  98. <Parameters>
  99. <Parameter Name="description" Type="System.ServiceModel.Description.ServiceDescription" />
  100. <Parameter Name="serviceHostBase" Type="System.ServiceModel.ServiceHostBase" />
  101. <Parameter Name="endpoints" Type="System.Collections.ObjectModel.Collection&lt;System.ServiceModel.Description.ServiceEndpoint&gt;" />
  102. <Parameter Name="parameters" Type="System.ServiceModel.Channels.BindingParameterCollection" />
  103. </Parameters>
  104. <Docs>
  105. <remarks>
  106. <attribution license="cc4" from="Microsoft" modified="false" />
  107. <para>This method supports the indigo2 infrastructure and is not intended to be used directly from your code.</para>
  108. </remarks>
  109. <summary>
  110. <attribution license="cc4" from="Microsoft" modified="false" />
  111. <para>Adds custom data that the binding elements can access to support the implementation of the contract.</para>
  112. </summary>
  113. <param name="description">
  114. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.ServiceModel.Description.ServiceDescription" /> of the service. </param>
  115. <param name="serviceHostBase">
  116. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.ServiceModel.ServiceHostBase" /> used to host the service.</param>
  117. <param name="endpoints">
  118. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.ObjectModel.Collection`1" /> of type <see cref="T:System.ServiceModel.Description.ServiceEndpoint" /> that contains the endpoints for the service.</param>
  119. <param name="parameters">
  120. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.ServiceModel.Channels.BindingParameterCollection" /> that contains the parameters that the binding elements for the service can access.</param>
  121. </Docs>
  122. </Member>
  123. <Member MemberName="System.ServiceModel.Description.IServiceBehavior.ApplyDispatchBehavior">
  124. <MemberSignature Language="C#" Value="void IServiceBehavior.ApplyDispatchBehavior (System.ServiceModel.Description.ServiceDescription description, System.ServiceModel.ServiceHostBase serviceHostBase);" />
  125. <MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.ServiceModel.Description.IServiceBehavior.ApplyDispatchBehavior(class System.ServiceModel.Description.ServiceDescription description, class System.ServiceModel.ServiceHostBase serviceHostBase) cil managed" />
  126. <MemberType>Method</MemberType>
  127. <AssemblyInfo>
  128. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  129. </AssemblyInfo>
  130. <ReturnValue>
  131. <ReturnType>System.Void</ReturnType>
  132. </ReturnValue>
  133. <Parameters>
  134. <Parameter Name="description" Type="System.ServiceModel.Description.ServiceDescription" />
  135. <Parameter Name="serviceHostBase" Type="System.ServiceModel.ServiceHostBase" />
  136. </Parameters>
  137. <Docs>
  138. <remarks>
  139. <attribution license="cc4" from="Microsoft" modified="false" />
  140. <para>This method supports the indigo2 infrastructure and is not intended to be used directly from your code.</para>
  141. </remarks>
  142. <summary>
  143. <attribution license="cc4" from="Microsoft" modified="false" />
  144. <para>Checks that the type of hosting is consistent with the vstecasp compatibility requirements.</para>
  145. </summary>
  146. <param name="description">
  147. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.ServiceModel.Description.ServiceDescription" /> of the service. </param>
  148. <param name="serviceHostBase">
  149. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.ServiceModel.ServiceHostBase" /> for hosting the service.</param>
  150. </Docs>
  151. </Member>
  152. <Member MemberName="System.ServiceModel.Description.IServiceBehavior.Validate">
  153. <MemberSignature Language="C#" Value="void IServiceBehavior.Validate (System.ServiceModel.Description.ServiceDescription description, System.ServiceModel.ServiceHostBase serviceHostBase);" />
  154. <MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.ServiceModel.Description.IServiceBehavior.Validate(class System.ServiceModel.Description.ServiceDescription description, class System.ServiceModel.ServiceHostBase serviceHostBase) cil managed" />
  155. <MemberType>Method</MemberType>
  156. <AssemblyInfo>
  157. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  158. </AssemblyInfo>
  159. <ReturnValue>
  160. <ReturnType>System.Void</ReturnType>
  161. </ReturnValue>
  162. <Parameters>
  163. <Parameter Name="description" Type="System.ServiceModel.Description.ServiceDescription" />
  164. <Parameter Name="serviceHostBase" Type="System.ServiceModel.ServiceHostBase" />
  165. </Parameters>
  166. <Docs>
  167. <remarks>
  168. <attribution license="cc4" from="Microsoft" modified="false" />
  169. <para>This method supports the indigo2 infrastructure and is not intended to be used directly from your code.</para>
  170. </remarks>
  171. <summary>
  172. <attribution license="cc4" from="Microsoft" modified="false" />
  173. <para>Validates the service behavior.</para>
  174. </summary>
  175. <param name="description">
  176. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.ServiceModel.Description.ServiceDescription" /> of the service. </param>
  177. <param name="serviceHostBase">
  178. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.ServiceModel.ServiceHostBase" /> for hosting the service.</param>
  179. </Docs>
  180. </Member>
  181. </Members>
  182. </Type>