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/samples/membership-and-role-provider.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ The Membership and Role Provider sample demonstrates how a service can use the A
174
174
175
175
The certificate is stored in My (Personal) store under the LocalMachine store location.
176
176
177
-
```
177
+
```bat
178
178
echo ************
179
179
echo Server cert setup starting
180
180
echo %SERVER_NAME%
@@ -188,6 +188,6 @@ The Membership and Role Provider sample demonstrates how a service can use the A
188
188
189
189
The following lines in the Setup.bat batch file copy the server certificate into the client trusted people store. This step is required because certificates generated by Makecert.exe are not implicitly trusted by the client system. If you already have a certificate that is rooted in a client trusted root certificate—for example, a Microsoft-issued certificate—this step of populating the client certificate store with the server certificate is not required.
Copy file name to clipboardExpand all lines: docs/framework/wcf/samples/message-inspectors.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This sample demonstrates how to implement and configure client and service messa
13
13
## Message Inspector
14
14
Client message inspectors implement the <xref:System.ServiceModel.Dispatcher.IClientMessageInspector> interface and service message inspectors implement the <xref:System.ServiceModel.Dispatcher.IDispatchMessageInspector> interface. The implementations can be combined into a single class to form a message inspector that works for both sides. This sample implements such a combined message inspector. The inspector is constructed passing in a set of schemas against which incoming and outgoing messages are validated and allows the developer to specify whether incoming or outgoing messages are validated and whether the inspector is in dispatch or client mode, which affects the error handling as discussed later in this topic.
@@ -37,7 +37,7 @@ public class SchemaValidationMessageInspector : IClientMessageInspector, IDispat
37
37
38
38
<xref:System.ServiceModel.Dispatcher.IDispatchMessageInspector.AfterReceiveRequest%2A> is invoked by the dispatcher when a message has been received, processed by the channel stack and assigned to a service, but before it is deserialized and dispatched to an operation. If the incoming message was encrypted, the message is already decrypted when it reaches the message inspector. The method gets the `request` message passed as a reference parameter, which allows the message to be inspected, manipulated or replaced as required. The return value can be any object and is used as a correlation state object that is passed to <xref:System.ServiceModel.Dispatcher.IDispatchMessageInspector.BeforeSendReply%2A> when the service returns a reply to the current message. In this sample, <xref:System.ServiceModel.Dispatcher.IDispatchMessageInspector.AfterReceiveRequest%2A> delegates the inspection (validation) of the message to the private, local method `ValidateMessageBody` and returns no correlation state object. This method ensures that no invalid messages pass into the service.
This <xref:System.ServiceModel.Dispatcher.IClientMessageInspector.BeforeSendRequest%2A> implementation ensures that no invalid messages are sent to the service.
If no error occurs, a new message is constructed that copies the properties and headers from the original message and uses the now-validated infoset in the memory stream, which is wrapped by an <xref:System.Xml.XmlDictionaryReader> and added to the replacement message.
@@ -293,7 +293,7 @@ public class SchemaValidationBehavior : IEndpointBehavior
293
293
294
294
Theoverridden `CreateBehavior` methodturnstheconfigurationdataintoabehaviorobject when the runtime evaluates the configuration data as it builds a client or an endpoint.
Copy file name to clipboardExpand all lines: docs/framework/wcf/samples/message-security-anonymous.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ Console.ReadLine();
129
129
130
130
When you run the sample, the operation requests and responses are displayed in the client console window. Press ENTER in the client window to shut down the client.
131
131
132
-
```
132
+
```console
133
133
IsCallerAnonymous returned: True
134
134
Add(100,15.99) = 115.99
135
135
Subtract(145,76.54) = 68.46
@@ -162,7 +162,7 @@ Press <ENTER> to terminate client.
162
162
163
163
The following line copies the server certificate into the client trusted people store. This step is required because certificates generated by Makecert.exe are not implicitly trusted by the client system. If you already have a certificate that is rooted in a client trusted root certificate—for example, a Microsoft-issued certificate—this step of populating the client certificate store with the server certificate is not required.
Copy file name to clipboardExpand all lines: docs/framework/wcf/samples/message-security-certificate.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,7 @@ client.Close();
187
187
188
188
When you run the sample, the operation requests and responses are displayed in the client console window. Press ENTER in the client window to shut down the client.
189
189
190
-
```
190
+
```console
191
191
CN=client.com
192
192
Add(100,15.99) = 115.99
193
193
Subtract(145,76.54) = 68.46
@@ -240,7 +240,7 @@ Press <ENTER> to terminate client.
240
240
241
241
The following line copies the server certificate into the client trusted people store. This step is required because certificates generated by Makecert.exe are not implicitly trusted by the client system. If you already have a certificate that is rooted in a client trusted root certificate—for example, a Microsoft-issued certificate—this step of populating the client certificate store with the server certificate is not required.
The following line copies the server certificate into the client trusted people store. This step is required because certificates generated by Makecert.exe are not implicitly trusted by the client system. If you already have a certificate that is rooted in a client trusted root certificate—for example, a Microsoft-issued certificate—this step of populating the client certificate store with the server certificate is not required.
Copy file name to clipboardExpand all lines: docs/framework/wcf/samples/message-security-sample.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ Console.WriteLine("Called by {0}", ServiceSecurityContext.Current.PrimaryIdentit
96
96
97
97
When you run the sample, the operation requests and responses are displayed in the client console window. Press ENTER in the client window to shut down the client.
Copy file name to clipboardExpand all lines: docs/framework/wcf/samples/message-security-user-name.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ client.Close();
128
128
129
129
When you run the sample, the operation requests and responses are displayed in the client console window. Press ENTER in the client window to shut down the client.
130
130
131
-
```
131
+
```console
132
132
MyMachine\TestAccount
133
133
Add(100,15.99) = 115.99
134
134
Subtract(145,76.54) = 68.46
@@ -161,7 +161,7 @@ Press <ENTER> to terminate client.
161
161
162
162
The following line copies the server certificate into the client trusted people store. This step is required because certificates generated by Makecert.exe are not implicitly trusted by the client system. If you already have a certificate that is rooted in a client trusted root certificate—for example, a Microsoft-issued certificate—this step of populating the client certificate store with the server certificate is not required.
Copy file name to clipboardExpand all lines: docs/framework/wcf/samples/mtom-encoding.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ This sample demonstrates the use of the Message Transmission Optimization Mechan
36
36
37
37
The contract chosen for this sample transmits binary data to the service and receives the number of bytes uploaded as the return value. When the service is installed and the client is run, it prints out the number 1000, which indicates that all 1000 bytes were received. The remainder of the output lists optimized and non-optimized message sizes for various payloads.
38
38
39
-
```
39
+
```console
40
40
Output:
41
41
1000
42
42
@@ -64,7 +64,7 @@ Press <ENTER> to terminate client.
64
64
65
65
1. Install ASP.NET 4.0 using the following command.
Copy file name to clipboardExpand all lines: docs/framework/wcf/samples/namedpipe-activation.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ Press <ENTER> to terminate client.
174
174
175
175
1. To support net.pipe activation, the default Web site must first be bound to the net.pipe protocol. This can be done using appcmd.exe, which is installed with the IIS 7.0 management toolset. From an elevated (administrator) command prompt, run the following command.
176
176
177
-
```
177
+
```console
178
178
%windir%\system32\inetsrv\appcmd.exe set site "Default Web Site"
@@ -186,7 +186,7 @@ Press <ENTER> to terminate client.
186
186
187
187
2. Although all applications within a site share a common net.pipe binding, each application can enable net.pipe support individually. To enable net.pipe for the /servicemodelsamples application, run the following command from an elevated command prompt.
188
188
189
-
```
189
+
```console
190
190
%windir%\system32\inetsrv\appcmd.exe set app "Default Web Site/servicemodelsamples" /enabledProtocols:http,net.pipe
191
191
```
192
192
@@ -203,7 +203,7 @@ Press <ENTER> to terminate client.
203
203
204
204
1. Remove net.tcp from the list of enabled protocols by running the following command from an elevated command prompt.
205
205
206
-
```
206
+
```console
207
207
%windir%\system32\inetsrv\appcmd.exe set app "Default Web Site/servicemodelsamples" /enabledProtocols:http
208
208
```
209
209
@@ -212,7 +212,7 @@ Press <ENTER> to terminate client.
212
212
213
213
2. Remove the net.tcp site binding by running the following command from an elevated command prompt.
214
214
215
-
```
215
+
```console
216
216
%windir%\system32\inetsrv\appcmd.exe set site "Default Web Site" --bindings.[protocol='net.pipe',bindingInformation='*']
0 commit comments