Skip to content

Commit 3fd35d0

Browse files
Tom PrattRon Petrusha
authored andcommitted
US 1583733 Add missing language IDs - 25 (dotnet#14328)
* Batch 25 * fixes per review
1 parent a527ff2 commit 3fd35d0

13 files changed

+37
-39
lines changed

docs/framework/wcf/feature-details/discoveryclient-and-dynamicendpoint.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.assetid: 7cd418f0-0eab-48d1-a493-7eb907867ec3
99
## DiscoveryClient
1010
The <xref:System.ServiceModel.Discovery.DiscoveryClient> defines synchronous and asynchronous Find methods, <xref:System.ServiceModel.Discovery.DiscoveryClient.FindCompleted> and <xref:System.ServiceModel.Discovery.DiscoveryClient.FindProgressChanged> events. It also defines synchronous and asynchronous Resolve methods and a <xref:System.ServiceModel.Discovery.DiscoveryClient.ResolveCompleted> event. Use the <xref:System.ServiceModel.Discovery.DiscoveryClient.Find%2A> or <xref:System.ServiceModel.Discovery.DiscoveryClient.FindAsync%2A> methods to search for services. Both of these methods take a <xref:System.ServiceModel.Discovery.FindCriteria> instance that allows you to specify contract type names, scopes, maximum number of results requested, and scope matching rules. The <xref:System.ServiceModel.Discovery.DiscoveryClient.FindCompleted> and <xref:System.ServiceModel.Discovery.DiscoveryClient.FindProgressChanged> events can be used when calling the <xref:System.ServiceModel.Discovery.DiscoveryClient.FindAsync%2A> method. <xref:System.ServiceModel.Discovery.DiscoveryClient.FindProgressChanged> is fired whenever the <xref:System.ServiceModel.Discovery.DiscoveryClient> receives a response from a service. It can be used to display a progress bar showing the progress of the find operation. It can also be used to act on find responses as they are received. The <xref:System.ServiceModel.Discovery.DiscoveryClient.FindCompleted> event is fired when the find operation completes. This may happen because the maximum number of responses has been received or if the <xref:System.ServiceModel.Discovery.FindCriteria.Duration%2A> has elapsed. When the find operation completes the results are returned in a <xref:System.ServiceModel.Discovery.FindResponse> instance. The <xref:System.ServiceModel.Discovery.FindResponse> contains a collection of <xref:System.ServiceModel.Discovery.EndpointDiscoveryMetadata> which contains the addresses, contract type names, extensions, listen URIs, and scopes of the matching services. You can then use this information to connect to and call one of the matching services. The following example shows how to call the System.ServiceModel.Discovery.DiscoveryClient.Find(System.ServiceModel.Discovery.FindCriteria) method and use the returned metadata to call the found service. A benefit of using <xref:System.ServiceModel.Discovery.DiscoveryClient.Find(System.ServiceModel.Discovery.FindCriteria)> is that you can cache the list of endpoints you’ve found and use them at a later time. With this cache, you can build custom logic to handle various failure conditions.
1111

12-
```
12+
```csharp
1313
DiscoveryClient dc = new DiscoveryClient(new UdpDiscoveryEndpoint());
1414

1515
FindCriteria criteria = new FindCriteria(typeof(ICalculatorService));
@@ -37,7 +37,7 @@ else
3737

3838
The following example shows how to perform a find operation asynchronously.
3939

40-
```
40+
```csharp
4141
static void FindServiceAsync()
4242
{
4343
DiscoveryClient dc = new DiscoveryClient(new UdpDiscoveryEndpoint());
@@ -75,7 +75,7 @@ static void discoveryClient_FindCompleted(object sender, FindCompletedEventArgs
7575

7676
Use the <xref:System.ServiceModel.Discovery.DiscoveryClient.Resolve%2A> and <xref:System.ServiceModel.Discovery.DiscoveryClient.ResolveAsync%28System.ServiceModel.Discovery.ResolveCriteria%29> methods to locate a service based on its endpoint address. This is useful when the endpoint address is not network addressable. The Resolve methods take an instance of <xref:System.ServiceModel.Discovery.ResolveCriteria> which allows you to specify the endpoint address of the service you are resolving, the maximum duration of the resolve operation, and a set of extensions. The following example shows how to use the <xref:System.ServiceModel.Discovery.DiscoveryClient.Resolve%2A> method to resolve a service.
7777

78-
```
78+
```csharp
7979
DiscoveryClient dc = new DiscoveryClient(new UdpDiscoveryEndpoint());
8080
ResolveCriteria criteria = new ResolveCriteria(endpointAddress);
8181
ResolveResponse response = dc.Resolve(criteria);
@@ -85,7 +85,7 @@ EndpointAddress newEp = response.EndpointDiscoveryMetadata.Address;
8585
## DynamicEndpoint
8686
<xref:System.ServiceModel.Discovery.DynamicEndpoint> is a standard endpoint (For more information, see [Standard Endpoints](../../../../docs/framework/wcf/feature-details/standard-endpoints.md)) which performs discovery and automatically selects a matching service. Just create a <xref:System.ServiceModel.Discovery.DynamicEndpoint> passing in the contract to search for and the binding to use and pass the <xref:System.ServiceModel.Discovery.DynamicEndpoint> instance to the WCF client. The following example shows how to create and use a <xref:System.ServiceModel.Discovery.DynamicEndpoint> to call the calculator service. The discovery is performed every time the client is opened. Any endpoint defined in configuration can also be turned into a <xref:System.ServiceModel.Discovery.DynamicEndpoint> by adding the `kind ="dynamicEndpoint"` attribute to the endpoint configuration element.
8787

88-
```
88+
```csharp
8989
DynamicEndpoint dynamicEndpoint = new DynamicEndpoint(ContractDescription.GetContract(typeof(ICalculatorService)), new WSHttpBinding());
9090
CalculatorServiceClient client = new CalculatorServiceClient(dynamicEndpoint);
9191

docs/framework/wcf/feature-details/duplex-services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ On the client, you must configure an address that the server can use to connect
4141
4242
If you create a client/service using the `WSHttpBinding` element and you do not include the client callback endpoint, you will receive the following error.
4343

44-
```
44+
```console
4545
HTTP could not register URL
4646
htp://+:80/Temporary_Listen_Addresses/<guid> because TCP port 80 is being used by another application.
4747
```

docs/framework/wcf/feature-details/enabling-transaction-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Windows Communication Foundation (WCF) provides highly flexible options for cont
6868

6969
When generating WCF clients to unknown or untrusted Web services through the use of metadata exchange, calls to operations on these Web services should suppress the current transaction if possible. The following example demonstrates how to do this.
7070

71-
```
71+
```csharp
7272
//client code which has an ambient transaction
7373
using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress))
7474
{

docs/framework/wcf/feature-details/flowing-transactions-into-and-out-of-workflow-services.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Workflow services and clients can participate in transactions. For a service op
3131

3232
3. Add a new class called `PrintTransactionInfo` to the `Common` project. This class is derived from <xref:System.Activities.NativeActivity> and overloads the <xref:System.Activities.NativeActivity.Execute%2A> method.
3333

34-
```
34+
```csharp
3535
using System;
3636
using System;
3737
using System.Activities;
@@ -217,8 +217,8 @@ Workflow services and clients can participate in transactions. For a service op
217217

218218
2. Open the generated Program.cs file and the following code:
219219

220-
```
221-
static void Main()
220+
```csharp
221+
static void Main()
222222
{
223223
Console.WriteLine("Building the server.");
224224
using (WorkflowServiceHost host = new WorkflowServiceHost(new DeclarativeServiceWorkflow(), new Uri("net.tcp://localhost:8000/TransactedReceiveService/Declarative")))
@@ -257,8 +257,8 @@ Workflow services and clients can participate in transactions. For a service op
257257

258258
2. Open the program.cs file and add the following code.
259259

260-
```
261-
class Program
260+
```csharp
261+
class Program
262262
{
263263

264264
private static AutoResetEvent syncEvent = new AutoResetEvent(false);

docs/framework/wcf/feature-details/generating-a-wcf-client-from-service-metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This topic describes how to use the various switches in Svcutil.exe to generate
1616

1717
Svcutil.exe generates the client based on the Web Services Description Language (WSDL) or policy file received from the service. The user principal name (UPN) is generated by concatenating the user name with "\@" and then adding a fully-qualified domain name (FQDN). However, for users who registered on Active Directory, this format is not valid and the UPN that the tool generates causes a failure in the Kerberos authentication with the following error message: **The logon attempt failed.** To resolve this problem, manually fix the client file that the tool generated.
1818

19-
```
19+
```console
2020
svcutil.exe [/t:code] <metadataDocumentPath>* | <url>* | <epr>
2121
```
2222

docs/framework/wcf/feature-details/grouping-queued-messages-in-a-session.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ Windows Communication Foundation (WCF) provides a session that allows you to gro
1818

1919
#### To set up a service contract to use sessions
2020

21-
1. Define a service contract that requires a session. Do this with the <xref:System.ServiceModel.OperationContractAttribute> attribute and by specifying:
21+
1. Define a service contract that requires a session. Do this with the <xref:System.ServiceModel.ServiceContractAttribute> attribute by specifying:
2222

23-
```
23+
```csharp
2424
SessionMode=SessionMode.Required
2525
```
2626

27-
2. Mark the operations in the contract as one-way, because these methods do not return anything. This is done with the <xref:System.ServiceModel.OperationContractAttribute> attribute and by specifying:
27+
2. Mark the operations in the contract as one-way, because these methods do not return anything. This is done with the <xref:System.ServiceModel.OperationContractAttribute> attribute by specifying:
2828

29-
```
29+
```csharp
3030
[OperationContract(IsOneWay = true)]
3131
```
3232

33-
3. Implement the service contract and specify an `InstanceContextMode` of `PerSession`. This instantiates the service only once for each session.
33+
3. Implement the service contract and specify an <xref:System.ServiceModel.ServiceBehaviorAttribute.InstanceContextMode> of <xref:System.ServiceModel.InstanceContextMode.PerSession?displayProperty=nameWithType>. This instantiates the service only once for each session.
3434

35-
```
35+
```csharp
3636
[ServiceBehavior(InstanceContextMode=InstanceContextMode.PerSession)]
3737
```
3838

39-
4. Each service operation requires a transaction. Specify this with the <xref:System.ServiceModel.OperationBehaviorAttribute> attribute. The operation that completes the transaction should also set `TransactionAutoComplete` to `true`.
39+
4. Each service operation requires a transaction. Specify this with the <xref:System.ServiceModel.OperationBehaviorAttribute> attribute. The operation that completes the transaction should also set <xref:System.ServiceModel.OperationBehaviorAttribute.TransactionAutoComplete> to `true`.
4040

41-
```
41+
```csharp
4242
[OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = true)]
4343
```
4444

docs/framework/wcf/feature-details/how-to-add-an-aspnet-ajax-endpoint-without-using-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Windows Communication Foundation (WCF) allows you to create a service that expos
5555

5656
1. Create a new file named service with a .svc extension in the application. Edit this file by adding the appropriate [\@ServiceHost](../../../../docs/framework/configure-apps/file-schema/wcf-directive/servicehost.md) directive information for the service. Specify that the <xref:System.ServiceModel.Activation.WebScriptServiceHostFactory> is to be used in the [\@ServiceHost](../../../../docs/framework/configure-apps/file-schema/wcf-directive/servicehost.md) directive to automatically configure an ASP.NET AJAX endpoint.
5757

58-
```
58+
```text
5959
<%@ServiceHost
6060
language=c#
6161
Debug="true"

docs/framework/wcf/feature-details/how-to-call-operations-asynchronously-using-a-channel-factory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This topic covers how a client can access a service operation asynchronously whe
1717

1818
1. Run the [ServiceModel Metadata Utility Tool (Svcutil.exe)](../../../../docs/framework/wcf/servicemodel-metadata-utility-tool-svcutil-exe.md) tool with the `/async` option as shown in the following command.
1919

20-
```
20+
```console
2121
svcutil /n:http://Microsoft.ServiceModel.Samples,Microsoft.ServiceModel.Samples http://localhost:8000/servicemodelsamples/service/mex /a
2222
```
2323

docs/framework/wcf/feature-details/how-to-call-wcf-service-operations-asynchronously.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This topic covers how a client can access a service operation asynchronously. Th
1818

1919
1. Run the [ServiceModel Metadata Utility Tool (Svcutil.exe)](../../../../docs/framework/wcf/servicemodel-metadata-utility-tool-svcutil-exe.md) tool with both the `/async` and the `/tcv:Version35` command options together as shown in the following command.
2020

21-
```
21+
```console
2222
svcutil /n:http://Microsoft.ServiceModel.Samples,Microsoft.ServiceModel.Samples http://localhost:8000/servicemodelsamples/service/mex /a /tcv:Version35
2323
```
2424

docs/framework/wcf/feature-details/how-to-configure-a-port-with-an-ssl-certificate.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ When creating a self-hosted Windows Communication Foundation (WCF) service with
3737

3838
1. In [!INCLUDE[ws2003](../../../../includes/ws2003-md.md)] or [!INCLUDE[wxp](../../../../includes/wxp-md.md)], use the HttpCfg.exe tool to view the current port configuration, using the **query** and **ssl** switches, as shown in the following example.
3939

40-
```
40+
```console
4141
httpcfg query ssl
4242
```
4343
4444
2. In [!INCLUDE[wv](../../../../includes/wv-md.md)], use the Netsh.exe tool to view the current port configuration, as shown in the following example.
4545
46-
```
46+
```console
4747
netsh http show sslcert
4848
```
4949
@@ -61,7 +61,7 @@ When creating a self-hosted Windows Communication Foundation (WCF) service with
6161
6262
1. In [!INCLUDE[ws2003](../../../../includes/ws2003-md.md)] or [!INCLUDE[wxp](../../../../includes/wxp-md.md)], use the HttpCfg.exe tool in "set" mode on the Secure Sockets Layer (SSL) store to bind the certificate to a port number. The tool uses the thumbprint to identify the certificate, as shown in the following example.
6363
64-
```
64+
```console
6565
httpcfg set ssl -i 0.0.0.0:8012 -h 0000000000003ed9cd0c315bbb6dc1c08da5e6
6666
```
6767
@@ -71,7 +71,7 @@ When creating a self-hosted Windows Communication Foundation (WCF) service with
7171
7272
2. In [!INCLUDE[wv](../../../../includes/wv-md.md)], use the Netsh.exe tool, as shown in the following example.
7373
74-
```
74+
```console
7575
netsh http add sslcert ipport=0.0.0.0:8000 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF}
7676
```
7777
@@ -85,35 +85,35 @@ When creating a self-hosted Windows Communication Foundation (WCF) service with
8585
8686
1. In [!INCLUDE[ws2003](../../../../includes/ws2003-md.md)] or [!INCLUDE[wxp](../../../../includes/wxp-md.md)], to support clients that authenticate with X.509 certificates at the transport layer, follow the preceding procedure but pass an additional command-line parameter to HttpCfg.exe, as shown in the following example.
8787
88-
```
88+
```console
8989
httpcfg set ssl -i 0.0.0.0:8012 -h 0000000000003ed9cd0c315bbb6dc1c08da5e6 -f 2
9090
```
9191
9292
The **-f** switch has the syntax of `n` where n is a number between 1 and 7. A value of 2, as shown in the preceding example, enables client certificates at the transport layer. A value of 3 enables client certificates and maps those certificates to a Windows account. See HttpCfg.exe Help for the behavior of other values.
9393
9494
2. In [!INCLUDE[wv](../../../../includes/wv-md.md)], to support clients that authenticate with X.509 certificates at the transport layer, follow the preceding procedure, but with an additional parameter, as shown in the following example.
9595
96-
```
96+
```console
9797
netsh http add sslcert ipport=0.0.0.0:8000 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF} clientcertnegotiation=enable
9898
```
9999
100100
### To delete an SSL certificate from a port number
101101
102102
1. Use the HttpCfg.exe or Netsh.exe tool to see the ports and thumbprints of all bindings on the computer. To print the information to disk, use the redirection character ">", as shown in the following example.
103103
104-
```
104+
```console
105105
httpcfg query ssl>myMachinePorts.txt
106-
```
106+
```
107107
108108
2. In [!INCLUDE[ws2003](../../../../includes/ws2003-md.md)] or [!INCLUDE[wxp](../../../../includes/wxp-md.md)], use the HttpCfg.exe tool with the **delete** and **ssl** keywords. Use the **-i** switch to specify the `IP`:`port` number, and the **-h** switch to specify the thumbprint.
109109
110-
```
110+
```console
111111
httpcfg delete ssl -i 0.0.0.0:8005 -h 0000000000003ed9cd0c315bbb6dc1c08da5e6
112112
```
113113
114114
3. In [!INCLUDE[wv](../../../../includes/wv-md.md)], use the Netsh.exe tool, as shown in the following example.
115115
116-
```
116+
```console
117117
Netsh http delete sslcert ipport=0.0.0.0:8005
118118
```
119119

0 commit comments

Comments
 (0)