1
//------------------------------------------------------------------------------
3 // This code was generated by a tool.
4 // Runtime Version:2.0.50727.42
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
9 //------------------------------------------------------------------------------
12 namespace Microsoft
.ServiceModel
.Samples
16 [System
.CodeDom
.Compiler
.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
17 [System
.ServiceModel
.ServiceContractAttribute(Namespace
="http://Microsoft.ServiceModel.Samples", ConfigurationName
="Microsoft.ServiceModel.Samples.IStreamingSample")]
18 public interface IStreamingSample
21 [System
.ServiceModel
.OperationContractAttribute(Action
="http://Microsoft.ServiceModel.Samples/IStreamingSample/GetStream", ReplyAction
="http://Microsoft.ServiceModel.Samples/IStreamingSample/GetStreamResponse")]
22 System
.IO
.Stream
GetStream(string data
);
24 [System
.ServiceModel
.OperationContractAttribute(Action
="http://Microsoft.ServiceModel.Samples/IStreamingSample/UploadStream", ReplyAction
="http://Microsoft.ServiceModel.Samples/IStreamingSample/UploadStreamResponse")]
25 bool UploadStream(System
.IO
.Stream stream
);
27 [System
.ServiceModel
.OperationContractAttribute(Action
="http://Microsoft.ServiceModel.Samples/IStreamingSample/EchoStream", ReplyAction
="http://Microsoft.ServiceModel.Samples/IStreamingSample/EchoStreamResponse")]
28 System
.IO
.Stream
EchoStream(System
.IO
.Stream stream
);
30 [System
.ServiceModel
.OperationContractAttribute(Action
="http://Microsoft.ServiceModel.Samples/IStreamingSample/GetReversedStream", ReplyAction
="http://Microsoft.ServiceModel.Samples/IStreamingSample/GetReversedStreamResponse")]
31 System
.IO
.Stream
GetReversedStream();
34 [System
.CodeDom
.Compiler
.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
35 public interface IStreamingSampleChannel
: Microsoft
.ServiceModel
.Samples
.IStreamingSample
, System
.ServiceModel
.IClientChannel
39 [System
.Diagnostics
.DebuggerStepThroughAttribute()]
40 [System
.CodeDom
.Compiler
.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
41 public partial class StreamingSampleClient
: System
.ServiceModel
.ClientBase
<Microsoft
.ServiceModel
.Samples
.IStreamingSample
>, Microsoft
.ServiceModel
.Samples
.IStreamingSample
44 public StreamingSampleClient()
48 public StreamingSampleClient(string endpointConfigurationName
) :
49 base(endpointConfigurationName
)
53 public StreamingSampleClient(string endpointConfigurationName
, string remoteAddress
) :
54 base(endpointConfigurationName
, remoteAddress
)
58 public StreamingSampleClient(string endpointConfigurationName
, System
.ServiceModel
.EndpointAddress remoteAddress
) :
59 base(endpointConfigurationName
, remoteAddress
)
63 public StreamingSampleClient(System
.ServiceModel
.Channels
.Binding binding
, System
.ServiceModel
.EndpointAddress remoteAddress
) :
64 base(binding
, remoteAddress
)
68 public System
.IO
.Stream
GetStream(string data
)
70 return base.Channel
.GetStream(data
);
73 public bool UploadStream(System
.IO
.Stream stream
)
75 return base.Channel
.UploadStream(stream
);
78 public System
.IO
.Stream
EchoStream(System
.IO
.Stream stream
)
80 return base.Channel
.EchoStream(stream
);
83 public System
.IO
.Stream
GetReversedStream()
85 return base.Channel
.GetReversedStream();