Commit 111d2d6 1 parent b0e7503 commit 111d2d6 Copy full SHA for 111d2d6
File tree 2 files changed +10
-3
lines changed
framework/wcf/Basic/Binding/Net/Tcp/Default/CS/client
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 3
3
//----------------------------------------------------------------
4
4
5
5
using System ;
6
+ using System . ServiceModel ;
6
7
7
8
namespace Microsoft . Samples . NetTcp
8
9
{
9
- //The service contract is defined in generatedClient.cs, generated from the service by the svcutil tool.
10
+ // The service contract is defined in generatedClient.cs, generated from the service by the svcutil tool.
10
11
11
- //Client implementation code.
12
+ // Client implementation code.
12
13
class Client
13
14
{
14
15
static void Main ( )
15
16
{
16
17
// Create a client
17
18
CalculatorClient client = new CalculatorClient ( ) ;
18
19
20
+ // Include the identity element when running cross-machine in a domain.
21
+ // NetTcpBinding binding = new NetTcpBinding();
22
+ // var endpointIdentity = new UpnEndpointIdentity("user_name@service_domain");
23
+ // EndpointAddress endpointAddress = new EndpointAddress(new Uri("net.tcp://localhost:9000/servicemodelsamples/service"), endpointIdentity);
24
+ // CalculatorClient client = new CalculatorClient(binding, endpointAddress);
25
+
19
26
// Call the Add service operation.
20
27
double value1 = 100.00D ;
21
28
double value2 = 15.99D ;
Original file line number Diff line number Diff line change 22
22
</ItemGroup >
23
23
24
24
<ItemGroup Condition =" '$(TargetFramework)' == 'net462' " >
25
+ <Reference Include =" System.IdentityModel" />
25
26
<Reference Include =" System.ServiceModel" />
26
27
</ItemGroup >
27
28
31
32
</ItemGroup >
32
33
33
34
</Project >
34
-
You can’t perform that action at this time.
0 commit comments