Mercurial > pub > bltoolkit
comparison Demo/Linq/OverWCF/Client.cs @ 0:f990fcb411a9
Копия текущей версии из github
| author | cin |
|---|---|
| date | Thu, 27 Mar 2014 21:46:09 +0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:f990fcb411a9 |
|---|---|
| 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 } |
