Skip to content

Commit 3a20073

Browse files
authored
Reinstate WCF sample docs (#25093)
1 parent 8fafeef commit 3a20073

File tree

442 files changed

+29866
-2066
lines changed

Some content is hidden

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

442 files changed

+29866
-2066
lines changed

.openpublishing.redirection.json

Lines changed: 0 additions & 1180 deletions
Large diffs are not rendered by default.

docs/framework/configure-apps/file-schema/wcf-directive/servicehost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ Factory="WebScriptServiceHostFactory"
6969

7070
## See also
7171

72-
- [Custom Service Host](/previous-versions/dotnet/framework/wcf/samples/custom-service-host)
72+
- [Custom Service Host](../../../wcf/samples/custom-service-host.md)

docs/framework/configure-apps/file-schema/wcf/add-of-authorizationpolicies.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Specifies an authorization policy for claim transformation.
5151

5252
## Remarks
5353

54-
Each authorization policy contains a single required `policyType` attribute that is a string. The attribute specifies an authorization policy, which enables transformation of one set of input claims into another set of claims. Access control can be granted or denied based on that. For more information on how an authorization policy works, see <xref:System.IdentityModel.Policy.IAuthorizationPolicy> and [Authorization Policy](/previous-versions/dotnet/framework/wcf/samples/authorization-policy).
54+
Each authorization policy contains a single required `policyType` attribute that is a string. The attribute specifies an authorization policy, which enables transformation of one set of input claims into another set of claims. Access control can be granted or denied based on that. For more information on how an authorization policy works, see <xref:System.IdentityModel.Policy.IAuthorizationPolicy> and [Authorization Policy](../../../wcf/samples/authorization-policy.md).
5555

5656
## See also
5757

@@ -62,7 +62,7 @@ Specifies an authorization policy for claim transformation.
6262
- <xref:System.ServiceModel.Configuration.ServiceAuthorizationElement.AuthorizationPolicies%2A>
6363
- <xref:System.ServiceModel.Configuration.AuthorizationPolicyTypeElementCollection>
6464
- <xref:System.IdentityModel.Policy.IAuthorizationPolicy>
65-
- [Authorizing Access to Service Operations](/previous-versions/dotnet/framework/wcf/samples/authorizing-access-to-service-operations)
65+
- [Authorizing Access to Service Operations](../../../wcf/samples/authorizing-access-to-service-operations.md)
6666
- [How to: Create a Custom Authorization Manager for a Service](../../../wcf/extending/how-to-create-a-custom-authorization-manager-for-a-service.md)
6767
- [\<add>](add-of-authorizationpolicies.md)
68-
- [Authorization Policy](/previous-versions/dotnet/framework/wcf/samples/authorization-policy)
68+
- [Authorization Policy](../../../wcf/samples/authorization-policy.md)

docs/framework/configure-apps/file-schema/wcf/add-of-claimtyperequirements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ Specifies the types of required and optional claims expected to appear in the fe
8888
- [Custom Bindings](../../../wcf/extending/custom-bindings.md)
8989
- [\<customBinding>](custombinding.md)
9090
- [How to: Create a Custom Binding Using the SecurityBindingElement](../../../wcf/feature-details/how-to-create-a-custom-binding-using-the-securitybindingelement.md)
91-
- [Custom Binding Security](/previous-versions/dotnet/framework/wcf/samples/custom-binding-security)
91+
- [Custom Binding Security](../../../wcf/samples/custom-binding-security.md)

docs/framework/configure-apps/file-schema/wcf/additionalrequestparameters-element.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ This contains a collection of configuration elements that specify additional req
2222
- [Custom Bindings](../../../wcf/extending/custom-bindings.md)
2323
- [\<customBinding>](custombinding.md)
2424
- [How to: Create a Custom Binding Using the SecurityBindingElement](../../../wcf/feature-details/how-to-create-a-custom-binding-using-the-securitybindingelement.md)
25-
- [Custom Binding Security](/previous-versions/dotnet/framework/wcf/samples/custom-binding-security)
25+
- [Custom Binding Security](../../../wcf/samples/custom-binding-security.md)

docs/framework/configure-apps/file-schema/wcf/authorizationpolicies.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.assetid: 5b367489-54d7-408b-8f56-cb157dd68eaf
66
---
77
# \<authorizationPolicies>
88

9-
This configuration section contains a collection of authorization policy types, which can be added using the `add` keyword. Each authorization policy contains a single required `policyType` attribute that is a string. The attribute specifies an authorization policy, which enables transformation of one set of input claims into another set of claims. Access control can be granted or denied based on that. For more information on how an authorization policy works, see <xref:System.IdentityModel.Policy.IAuthorizationPolicy> and [Authorization Policy](/previous-versions/dotnet/framework/wcf/samples/authorization-policy).
9+
This configuration section contains a collection of authorization policy types, which can be added using the `add` keyword. Each authorization policy contains a single required `policyType` attribute that is a string. The attribute specifies an authorization policy, which enables transformation of one set of input claims into another set of claims. Access control can be granted or denied based on that. For more information on how an authorization policy works, see <xref:System.IdentityModel.Policy.IAuthorizationPolicy> and [Authorization Policy](../../../wcf/samples/authorization-policy.md).
1010

1111
## See also
1212

@@ -17,7 +17,7 @@ This configuration section contains a collection of authorization policy types,
1717
- <xref:System.ServiceModel.Configuration.ServiceAuthorizationElement.AuthorizationPolicies%2A>
1818
- <xref:System.ServiceModel.Configuration.AuthorizationPolicyTypeElementCollection>
1919
- <xref:System.IdentityModel.Policy.IAuthorizationPolicy>
20-
- [Authorizing Access to Service Operations](/previous-versions/dotnet/framework/wcf/samples/authorizing-access-to-service-operations)
20+
- [Authorizing Access to Service Operations](../../../wcf/samples/authorizing-access-to-service-operations.md)
2121
- [How to: Create a Custom Authorization Manager for a Service](../../../wcf/extending/how-to-create-a-custom-authorization-manager-for-a-service.md)
2222
- [\<add>](add-of-authorizationpolicies.md)
23-
- [Authorization Policy](/previous-versions/dotnet/framework/wcf/samples/authorization-policy)
23+
- [Authorization Policy](../../../wcf/samples/authorization-policy.md)

docs/framework/configure-apps/file-schema/wcf/basichttpbinding.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Represents a binding that a Windows Communication Foundation (WCF) service can u
6767
|`maxBufferSize`|An integer value that specifies the maximum size, in bytes, of a buffer that stores messages while they are processed for an endpoint configured with this binding. The default value is 65,536 bytes.|
6868
|`maxReceivedMessageSize`|A positive integer that defines the maximum message size, in bytes, including headers, for a message that can be received on a channel configured with this binding. The sender receives a SOAP fault if the message is too large for the receiver. The receiver drops the message and creates an entry of the event in the trace log. The default is 65,536 bytes.|
6969
|`messageEncoding`|Defines the encoder used to encode the SOAP message. Valid values include the following:<br /><br /> - Text: Use a text message encoder.<br />- Mtom: Use a Message Transmission Organization Mechanism 1.0 (MTOM) encoder.<br /><br /> The default is Text. This attribute is of type <xref:System.ServiceModel.WSMessageEncoding>.|
70-
|`name`|A string that contains the configuration name of the binding. This value should be unique among bindings of the same type. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](/previous-versions/dotnet/framework/wcf/samples/simplified-configuration-for-wcf-services).|
70+
|`name`|A string that contains the configuration name of the binding. This value should be unique among bindings of the same type. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](../../../wcf/samples/simplified-configuration-for-wcf-services.md).|
7171
|`openTimeout`|A <xref:System.TimeSpan> value that specifies the interval of time provided for an open operation to complete. This value should be greater than or equal to <xref:System.TimeSpan.Zero>. The default is 00:01:00.|
7272
|`proxyAddress`|A URI that contains the address of the HTTP proxy. If `useSystemWebProxy` is set to `true`, this setting must be `null`. The default is `null`.|
7373
|`receiveTimeout`|A <xref:System.TimeSpan> value that specifies the interval of time provided for a receive operation to complete. This value should be greater than or equal to <xref:System.TimeSpan.Zero>. The default is 00:10:00.|
@@ -169,7 +169,7 @@ Represents a binding that a Windows Communication Foundation (WCF) service can u
169169
</system.serviceModel>
170170
```
171171

172-
For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](/previous-versions/dotnet/framework/wcf/samples/simplified-configuration-for-wcf-services).
172+
For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](../../../wcf/samples/simplified-configuration-for-wcf-services.md).
173173

174174
## See also
175175

docs/framework/configure-apps/file-schema/wcf/basichttpcontextbinding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Specifying a binding that provides context for the <xref:System.ServiceModel.Bas
6666
|`maxReceivedMessageSize`|A positive integer that defines the maximum message size, in bytes, including headers, for a message that can be received on a channel configured with this binding. The sender receives a SOAP fault if the message is too large for the receiver. The receiver drops the message and creates an entry of the event in the trace log. The default is 65,536 bytes.|
6767
|`messageEncoding`|Defines the encoder used to encode the SOAP message. Valid values include the following:<br /><br /> - Text: Use a text message encoder.<br />- Mtom: Use a Message Transmission Organization Mechanism 1.0 (MTOM) encoder.<br /><br /> The default is Text. This attribute is of type <xref:System.ServiceModel.WSMessageEncoding>.|
6868
|`messageVersion`|Specifies the message version used by clients and services configured with the binding. This attribute is of type <xref:System.ServiceModel.Channels.MessageVersion>.|
69-
|`name`|A string that contains the configuration name of the binding. This value should be unique because it is used as an identification for the binding. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](/previous-versions/dotnet/framework/wcf/samples/simplified-configuration-for-wcf-services).|
69+
|`name`|A string that contains the configuration name of the binding. This value should be unique because it is used as an identification for the binding. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](../../../wcf/samples/simplified-configuration-for-wcf-services.md).|
7070
|`openTimeout`|A <xref:System.TimeSpan> value that specifies the interval of time provided for an open operation to complete. This value should be greater than or equal to <xref:System.TimeSpan.Zero>. The default is 00:01:00.|
7171
|`proxyAddress`|A URI that contains the address of the HTTP proxy. If `useSystemWebProxy` is set to `true`, this setting must be `null`. The default is `null`.|
7272
|`receiveTimeout`|A <xref:System.TimeSpan> value that specifies the interval of time provided for a receive operation to complete. This value should be greater than or equal to <xref:System.TimeSpan.Zero>. The default is 00:10:00.|

docs/framework/configure-apps/file-schema/wcf/behavior-of-endpointbehaviors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.assetid: b90ca3bc-3c22-4174-b903-e3a39898bd27
66
---
77
# \<behavior> of \<endpointBehaviors>
88

9-
The `behavior` element contains a collection of settings for the behavior of an endpoint. Each behavior is indexed by its `name`. Endpoints can link to each behavior through this name. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](/previous-versions/dotnet/framework/wcf/samples/simplified-configuration-for-wcf-services).
9+
The `behavior` element contains a collection of settings for the behavior of an endpoint. Each behavior is indexed by its `name`. Endpoints can link to each behavior through this name. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](../../../wcf/samples/simplified-configuration-for-wcf-services.md).
1010

1111
[**\<configuration>**](../configuration-element.md)\
1212
&nbsp;&nbsp;[**\<system.serviceModel>**](system-servicemodel.md)\
@@ -34,7 +34,7 @@ The `behavior` element contains a collection of settings for the behavior of an
3434

3535
|Attribute|Description|
3636
|---------------|-----------------|
37-
|name|A unique string that contains the configuration name of the behavior. This value is a user-defined string that must be unique, since it acts as the identification string for the element. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](/previous-versions/dotnet/framework/wcf/samples/simplified-configuration-for-wcf-services).|
37+
|name|A unique string that contains the configuration name of the behavior. This value is a user-defined string that must be unique, since it acts as the identification string for the element. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](../../../wcf/samples/simplified-configuration-for-wcf-services.md).|
3838

3939
### Child Elements
4040

docs/framework/configure-apps/file-schema/wcf/behavior-of-servicebehaviors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.assetid: 78fc0a08-55de-416a-ac12-a5e6ffc9a987
66
---
77
# \<behavior> of \<serviceBehaviors>
88

9-
The `behavior` element contains a collection of settings for the behavior of a service. Each behavior is indexed by its `name`. Services can link to each behavior through this name using the `behaviorConfiguration` attribute of the [\<endpoint>](endpoint-element.md) element. This allows endpoints to share common behavior configurations without redefining the settings. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](/previous-versions/dotnet/framework/wcf/samples/simplified-configuration-for-wcf-services).
9+
The `behavior` element contains a collection of settings for the behavior of a service. Each behavior is indexed by its `name`. Services can link to each behavior through this name using the `behaviorConfiguration` attribute of the [\<endpoint>](endpoint-element.md) element. This allows endpoints to share common behavior configurations without redefining the settings. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](../../../wcf/samples/simplified-configuration-for-wcf-services.md).
1010

1111
> [!NOTE]
1212
> Behavior elements specific to Windows Workflow activities, such as the [\<sendMessageChannelCache>](../windows-workflow-foundation/sendmessagechannelcache.md) element, are documented in the [\<behavior> of \<serviceBehaviors>](../windows-workflow-foundation/behavior-of-servicebehaviors-of-workflow.md) page.
@@ -37,7 +37,7 @@ The `behavior` element contains a collection of settings for the behavior of a s
3737

3838
|Attribute|Description|
3939
|---------------|-----------------|
40-
|name|A unique string that contains the configuration name of the behavior. This value is a user-defined string that must be unique, since it acts as the identification string for the element. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](/previous-versions/dotnet/framework/wcf/samples/simplified-configuration-for-wcf-services).|
40+
|name|A unique string that contains the configuration name of the behavior. This value is a user-defined string that must be unique, since it acts as the identification string for the element. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see [Simplified Configuration](../../../wcf/simplified-configuration.md) and [Simplified Configuration for WCF Services](../../../wcf/samples/simplified-configuration-for-wcf-services.md).|
4141

4242
### Child Elements
4343

0 commit comments

Comments
 (0)