0
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3 using System.ServiceModel;
|
|
4
|
|
5 namespace Linq.OverWCF
|
|
6 {
|
|
7 class Client : ClientBase<IDemoService>, IDemoService
|
|
8 {
|
|
9 public Client() : base(
|
|
10 new NetTcpBinding(SecurityMode.None)
|
|
11 {
|
|
12 MaxReceivedMessageSize = 10000000,
|
|
13 MaxBufferPoolSize = 10000000,
|
|
14 MaxBufferSize = 10000000,
|
|
15 },
|
|
16 new EndpointAddress("net.tcp://localhost:1234/LinqOverWCF"))
|
|
17 {
|
|
18 }
|
|
19
|
|
20 public IEnumerable<string> DemoMethod(string str)
|
|
21 {
|
|
22 return Channel.DemoMethod(str);
|
|
23 }
|
|
24 }
|
|
25 }
|