You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/framework/wcf/configuration-editor-tool-svcconfigeditor-exe.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ The viewer automatically follows the configuration merge path and creates a view
69
69
70
70
### Services
71
71
72
-
The **Services** node displays all of the services currently assigned in the configuration file. Each sub-node in the tree corresponds to a sub-element of the <`services`> element in the configuration file.
72
+
The **Services** node displays all of the services currently assigned in the configuration file. Each sub-node in the tree corresponds to a sub-element of the `<services>` element in the configuration file.
73
73
74
74
When you click the **Services** node, you can view or perform tasks on the service Summary Page in the **Detail** Pane.
75
75
@@ -116,7 +116,7 @@ You can create a new service endpoint configuration in the following ways:
116
116
117
117
### Client
118
118
119
-
The **Client** node displays all of the client endpoints in the configuration file. Every sub-node in the tree corresponds to a sub-element of the <`client`> element in the configuration file.
119
+
The **Client** node displays all of the client endpoints in the configuration file. Every sub-node in the tree corresponds to a sub-element of the `<client>` element in the configuration file.
120
120
121
121
When you click the **Client** node, you can view or perform tasks on the client **Summary Page** in the **Detail Pane**.
122
122
@@ -176,7 +176,7 @@ If the standard endpoint is in used, a warning message is displayed when you att
176
176
177
177
Binding configurations are used to configure bindings on endpoints. Such configuration settings are stored in the **Binding** node. Endpoints reference binding configurations by name and multiple endpoints can reference a single binding configuration.
178
178
179
-
The **Bindings** node displays all of the binding settings in the configuration file. Every sub-node in the tree corresponds to a sub-element in the <`bindings`> element in the configuration file.
179
+
The **Bindings** node displays all of the binding settings in the configuration file. Every sub-node in the tree corresponds to a sub-element in the `<bindings>` element in the configuration file.
180
180
181
181
When you click the **Bindings** node, you can view or perform tasks on the binding **Summary Page** in the **Detail Pane**.
182
182
@@ -220,7 +220,7 @@ A custom binding is a collection of binding elements that form a stack. Each bin
220
220
221
221
### Diagnostics
222
222
223
-
The **Diagnostics** node displays all of the diagnostic settings in the configuration file. It enables you to turn performance counters on or off, enable or disable Windows Management Instrumentation (WMI), configure WCF tracing, and configure WCF message logging. The settings in the **Diagnostics** node correspond to the <`system.diagnostics`> section, and `<diagnostics>` section in `<system.serviceModel>` in the configuration file.
223
+
The **Diagnostics** node displays all of the diagnostic settings in the configuration file. It enables you to turn performance counters on or off, enable or disable Windows Management Instrumentation (WMI), configure WCF tracing, and configure WCF message logging. The settings in the **Diagnostics** node correspond to the `<system.diagnostics>` section, and `<diagnostics>` section in `<system.serviceModel>` in the configuration file.
224
224
225
225
When you click the **Diagnostics** node, you can view or perform tasks on the diagnostics **Summary Page** in the **Detail Pane**.
226
226
@@ -384,7 +384,7 @@ One way to create a new configuration file is to use the New Service Element Wiz
384
384
385
385
## Configuring COM+
386
386
387
-
The Service Configuration Editor enables you to create a new configuration file for an existing COM+ application, or edit an existing COM+ configuration. The **COM Contract** node is only visible when the <`comContract`> section exists in the configuration file.
387
+
The Service Configuration Editor enables you to create a new configuration file for an existing COM+ application, or edit an existing COM+ configuration. The **COM Contract** node is only visible when the `<comContract>` section exists in the configuration file.
Copy file name to clipboardExpand all lines: docs/framework/wcf/configuring-wcf-services-in-code.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ public class Service1 : IService1
74
74
}
75
75
```
76
76
77
-
The settings in the <`protocolMappings`> section are only used if no application endpoints are added to the <xref:System.ServiceModel.ServiceConfiguration> programmatically.You can optionally load the service configuration from the default application configuration file by calling <xref:System.ServiceModel.ServiceConfiguration.LoadFromConfiguration%2A> and then change the settings. The <xref:System.ServiceModel.ServiceConfiguration.LoadFromConfiguration> class also allows you to load configuration from a centralized configuration. The following code illustrates how to implement this:
77
+
The settings in the `<protocolMappings>` section are only used if no application endpoints are added to the <xref:System.ServiceModel.ServiceConfiguration> programmatically.You can optionally load the service configuration from the default application configuration file by calling <xref:System.ServiceModel.ServiceConfiguration.LoadFromConfiguration%2A> and then change the settings. The <xref:System.ServiceModel.ServiceConfiguration.LoadFromConfiguration> class also allows you to load configuration from a centralized configuration. The following code illustrates how to implement this:
78
78
79
79
```csharp
80
80
publicclassService1 : IService1
@@ -88,7 +88,7 @@ public class Service1 : IService1
88
88
```
89
89
90
90
> [!IMPORTANT]
91
-
> Note that <xref:System.ServiceModel.ServiceConfiguration.LoadFromConfiguration%2A> ignores <`host`> settings within the <`service`> tag of <`system.serviceModel`>. Conceptually, <`host`> is about host configuration, not service configuration, and it gets loaded before the Configure method executes.
91
+
> Note that <xref:System.ServiceModel.ServiceConfiguration.LoadFromConfiguration%2A> ignores `<host>` settings within the `<service>` tag of `<system.serviceModel>`. Conceptually, `<host>` is about host configuration, not service configuration, and it gets loaded before the Configure method executes.
Copy file name to clipboardExpand all lines: docs/framework/wcf/extending/overriding-the-identity-of-a-service-for-authentication.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ Typically, you do not have to set the identity on a service because the selectio
48
48
49
49
If you change the client credential type in the binding previously shown to `Certificate`, then the generated WSDL contains a Base64 serialized X.509 certificate for the identity value as shown in the following code. This is the default for all client credential types other than Windows.
50
50
51
-
You can change the value of the default service identity or change the type of the identity by using the <`identity`> element in configuration or by setting the identity in code. The following configuration code sets a domain name system (DNS) identity with the value `contoso.com`.
51
+
You can change the value of the default service identity or change the type of the identity by using the `<identity>` element in configuration or by setting the identity in code. The following configuration code sets a domain name system (DNS) identity with the value `contoso.com`.
Copy file name to clipboardExpand all lines: docs/framework/wcf/extending/specifying-a-custom-crypto-algorithm.md
+116-116
Original file line number
Diff line number
Diff line change
@@ -6,124 +6,124 @@ ms.topic: how-to
6
6
---
7
7
# Specifying a Custom Crypto Algorithm
8
8
9
-
WCF allows you to specify a custom crypto algorithm to use when encrypting data or computing digital signatures. This is done by the following steps:
10
-
11
-
1. Derive a class from <xref:System.ServiceModel.Security.SecurityAlgorithmSuite>
12
-
13
-
2. Register the algorithm
14
-
15
-
3. Configure the binding with the <xref:System.ServiceModel.Security.SecurityAlgorithmSuite>-derived class.
16
-
17
-
## Derive a class from SecurityAlgorithmSuite
18
-
19
-
The <xref:System.ServiceModel.Security.SecurityAlgorithmSuite> is an abstract base class that allows you to specify the algorithm to use when performing various security related operations. For example, computing a hash for a digital signature or encrypting a message. The following code shows how to derive a class from <xref:System.ServiceModel.Security.SecurityAlgorithmSuite>:
Registration can be done in a configuration file or in imperative code. Registering a custom algorithm is done by creating a mapping between a class that implements a crypto service provider and an alias. The alias is then mapped to a URI which is used when specifying the algorithm in the WCF service's binding. The following configuration snippet illustrates how to register a custom algorithm in config:
The section under the <`cryptoClasses`> element creates the mapping between the SHA256CryptoServiceProvider and the alias "SHA256CSP". The <`nameEntry`> element creates the mapping between the "SHA256CSP" alias and the specified URL `http://contoso.com/CustomAlgorithms/CustomHashAlgorithm`.
107
-
108
-
To register the custom algorithm in code use the <xref:System.Security.Cryptography.CryptoConfig.AddAlgorithm(System.Type,System.String[])> method. This method creates both mappings. The following example shows how to call this method:
109
-
9
+
WCF allows you to specify a custom crypto algorithm to use when encrypting data or computing digital signatures. This is done by the following steps:
10
+
11
+
1. Derive a class from <xref:System.ServiceModel.Security.SecurityAlgorithmSuite>
12
+
13
+
2. Register the algorithm
14
+
15
+
3. Configure the binding with the <xref:System.ServiceModel.Security.SecurityAlgorithmSuite>-derived class.
16
+
17
+
## Derive a class from SecurityAlgorithmSuite
18
+
19
+
The <xref:System.ServiceModel.Security.SecurityAlgorithmSuite> is an abstract base class that allows you to specify the algorithm to use when performing various security related operations. For example, computing a hash for a digital signature or encrypting a message. The following code shows how to derive a class from <xref:System.ServiceModel.Security.SecurityAlgorithmSuite>:
Registration can be done in a configuration file or in imperative code. Registering a custom algorithm is done by creating a mapping between a class that implements a crypto service provider and an alias. The alias is then mapped to a URI which is used when specifying the algorithm in the WCF service's binding. The following configuration snippet illustrates how to register a custom algorithm in config:
The section under the `<cryptoClasses>` element creates the mapping between the SHA256CryptoServiceProvider and the alias "SHA256CSP". The `<nameEntry>` element creates the mapping between the "SHA256CSP" alias and the specified URL `http://contoso.com/CustomAlgorithms/CustomHashAlgorithm`.
107
+
108
+
To register the custom algorithm in code use the <xref:System.Security.Cryptography.CryptoConfig.AddAlgorithm(System.Type,System.String[])> method. This method creates both mappings. The following example shows how to call this method:
109
+
110
110
```csharp
111
111
// Register the custom URI string defined for the hashAlgorithm in MyCustomAlgorithmSuite class to create the
You configure the binding by specifying the custom <xref:System.ServiceModel.Security.SecurityAlgorithmSuite>-derived class in the binding settings as shown in the following code snippet:
You configure the binding by specifying the custom <xref:System.ServiceModel.Security.SecurityAlgorithmSuite>-derived class in the binding settings as shown in the following code snippet:
Copy file name to clipboardExpand all lines: docs/framework/wcf/extending/walkthrough-creating-custom-client-and-service-credentials.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -108,9 +108,9 @@ Once you have the configuration handler class, it can be integrated into the WCF
108
108
109
109
#### To register and use a custom client credentials configuration handler in the application configuration
110
110
111
-
1. Add an <`extensions`> element and a <`behaviorExtensions`> element to the configuration file.
111
+
1. Add an `<extensions>` element and a `<behaviorExtensions>` element to the configuration file.
112
112
113
-
2. Add an <`add`> element to the <`behaviorExtensions`> element and set the `name` attribute to an appropriate value.
113
+
2. Add an `<add>` element to the `<behaviorExtensions>` element and set the `name` attribute to an appropriate value.
114
114
115
115
3. Set the `type` attribute to the fully-qualified type name. Also include the assembly name and other assembly attributes.
116
116
@@ -124,7 +124,7 @@ Once you have the configuration handler class, it can be integrated into the WCF
124
124
</system.serviceModel>
125
125
```
126
126
127
-
4. After registering your configuration handler, the custom credentials element can be used inside the same configuration file instead of the system-provided <`clientCredentials`> element. You can use both the system-provided properties and any new properties that you have added to your configuration handler implementation. The following example sets the value of a custom property using the `creditCardNumber` attribute.
127
+
4. After registering your configuration handler, the custom credentials element can be used inside the same configuration file instead of the system-provided `<clientCredentials>` element. You can use both the system-provided properties and any new properties that you have added to your configuration handler implementation. The following example sets the value of a custom property using the `creditCardNumber` attribute.
0 commit comments