1
+ //------------------------------------------------------------------------------
2
+ // <auto-generated>
3
+ // This code was generated by a tool.
4
+ //
5
+ // Changes to this file may cause incorrect behavior and will be lost if
6
+ // the code is regenerated.
7
+ // </auto-generated>
8
+ //------------------------------------------------------------------------------
9
+
10
+ namespace ContractMemberNamedSystem_NS
11
+ {
12
+
13
+
14
+ [ System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.Tools.ServiceModel.Svcutil" , "99.99.99" ) ]
15
+ [ System . ServiceModel . ServiceContractAttribute ( Namespace = "http://Microsoft.ServiceModel.Samples" , ConfigurationName = "ContractMemberNamedSystem_NS.IService1" ) ]
16
+ public interface IService1
17
+ {
18
+
19
+ [ System . ServiceModel . OperationContractAttribute ( Action = "http://Microsoft.ServiceModel.Samples/IService1/GetData" , ReplyAction = "http://Microsoft.ServiceModel.Samples/IService1/GetDataResponse" ) ]
20
+ [ System . ServiceModel . XmlSerializerFormatAttribute ( SupportFaults = true ) ]
21
+ System . Threading . Tasks . Task < string > GetDataAsync ( int value ) ;
22
+
23
+ [ System . ServiceModel . OperationContractAttribute ( Action = "http://Microsoft.ServiceModel.Samples/IService1/GetDataUsingDataContract" , ReplyAction = "http://Microsoft.ServiceModel.Samples/IService1/GetDataUsingDataContractResponse" ) ]
24
+ [ System . ServiceModel . XmlSerializerFormatAttribute ( SupportFaults = true ) ]
25
+ System . Threading . Tasks . Task < ContractMemberNamedSystem_NS . CompositeType > GetDataUsingDataContractAsync ( ContractMemberNamedSystem_NS . CompositeType composite ) ;
26
+
27
+ [ System . ServiceModel . OperationContractAttribute ( Action = "http://Microsoft.ServiceModel.Samples/IService1/GetDataUsingDataContract2" , ReplyAction = "http://Microsoft.ServiceModel.Samples/IService1/GetDataUsingDataContract2Response" +
28
+ "" ) ]
29
+ [ System . ServiceModel . XmlSerializerFormatAttribute ( SupportFaults = true ) ]
30
+ System . Threading . Tasks . Task < ContractMemberNamedSystem_NS . CompositeType2 > GetDataUsingDataContract2Async ( ContractMemberNamedSystem_NS . CompositeType2 composite ) ;
31
+ }
32
+
33
+ /// <remarks/>
34
+ [ System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.Tools.ServiceModel.Svcutil" , "99.99.99" ) ]
35
+ [ System . Diagnostics . DebuggerStepThroughAttribute ( ) ]
36
+ [ System . Xml . Serialization . XmlTypeAttribute ( Namespace = "http://Microsoft.ServiceModel.Samples" ) ]
37
+ public partial class CompositeType
38
+ {
39
+
40
+ private string systemField ;
41
+
42
+ private bool boolValueField ;
43
+
44
+ /// <remarks/>
45
+ [ System . Xml . Serialization . XmlElementAttribute ( "System" , Form = System . Xml . Schema . XmlSchemaForm . Unqualified , Order = 0 ) ]
46
+ public string SystemMember
47
+ {
48
+ get
49
+ {
50
+ return this . systemField ;
51
+ }
52
+ set
53
+ {
54
+ this . systemField = value ;
55
+ }
56
+ }
57
+
58
+ /// <remarks/>
59
+ [ System . Xml . Serialization . XmlAttributeAttribute ( ) ]
60
+ public bool BoolValue
61
+ {
62
+ get
63
+ {
64
+ return this . boolValueField ;
65
+ }
66
+ set
67
+ {
68
+ this . boolValueField = value ;
69
+ }
70
+ }
71
+ }
72
+
73
+ /// <remarks/>
74
+ [ System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.Tools.ServiceModel.Svcutil" , "99.99.99" ) ]
75
+ [ System . Diagnostics . DebuggerStepThroughAttribute ( ) ]
76
+ [ System . Xml . Serialization . XmlTypeAttribute ( Namespace = "http://Microsoft.ServiceModel.Samples" ) ]
77
+ public partial class CompositeType2
78
+ {
79
+
80
+ private bool systemField ;
81
+
82
+ /// <remarks/>
83
+ [ System . Xml . Serialization . XmlAttributeAttribute ( "System" , Form = System . Xml . Schema . XmlSchemaForm . Qualified ) ]
84
+ public bool SystemMember
85
+ {
86
+ get
87
+ {
88
+ return this . systemField ;
89
+ }
90
+ set
91
+ {
92
+ this . systemField = value ;
93
+ }
94
+ }
95
+ }
96
+
97
+ [ System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.Tools.ServiceModel.Svcutil" , "99.99.99" ) ]
98
+ public interface IService1Channel : ContractMemberNamedSystem_NS . IService1 , System . ServiceModel . IClientChannel
99
+ {
100
+ }
101
+
102
+ [ System . Diagnostics . DebuggerStepThroughAttribute ( ) ]
103
+ [ System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.Tools.ServiceModel.Svcutil" , "99.99.99" ) ]
104
+ public partial class Service1Client : System . ServiceModel . ClientBase < ContractMemberNamedSystem_NS . IService1 > , ContractMemberNamedSystem_NS . IService1
105
+ {
106
+
107
+ /// <summary>
108
+ /// Implement this partial method to configure the service endpoint.
109
+ /// </summary>
110
+ /// <param name="serviceEndpoint">The endpoint to configure</param>
111
+ /// <param name="clientCredentials">The client credentials</param>
112
+ static partial void ConfigureEndpoint ( System . ServiceModel . Description . ServiceEndpoint serviceEndpoint , System . ServiceModel . Description . ClientCredentials clientCredentials ) ;
113
+
114
+ public Service1Client ( ) :
115
+ base ( Service1Client . GetDefaultBinding ( ) , Service1Client . GetDefaultEndpointAddress ( ) )
116
+ {
117
+ this . Endpoint . Name = EndpointConfiguration . BasicHttpBinding_IService1 . ToString ( ) ;
118
+ ConfigureEndpoint ( this . Endpoint , this . ClientCredentials ) ;
119
+ }
120
+
121
+ public Service1Client ( EndpointConfiguration endpointConfiguration ) :
122
+ base ( Service1Client . GetBindingForEndpoint ( endpointConfiguration ) , Service1Client . GetEndpointAddress ( endpointConfiguration ) )
123
+ {
124
+ this . Endpoint . Name = endpointConfiguration . ToString ( ) ;
125
+ ConfigureEndpoint ( this . Endpoint , this . ClientCredentials ) ;
126
+ }
127
+
128
+ public Service1Client ( EndpointConfiguration endpointConfiguration , string remoteAddress ) :
129
+ base ( Service1Client . GetBindingForEndpoint ( endpointConfiguration ) , new System . ServiceModel . EndpointAddress ( remoteAddress ) )
130
+ {
131
+ this . Endpoint . Name = endpointConfiguration . ToString ( ) ;
132
+ ConfigureEndpoint ( this . Endpoint , this . ClientCredentials ) ;
133
+ }
134
+
135
+ public Service1Client ( EndpointConfiguration endpointConfiguration , System . ServiceModel . EndpointAddress remoteAddress ) :
136
+ base ( Service1Client . GetBindingForEndpoint ( endpointConfiguration ) , remoteAddress )
137
+ {
138
+ this . Endpoint . Name = endpointConfiguration . ToString ( ) ;
139
+ ConfigureEndpoint ( this . Endpoint , this . ClientCredentials ) ;
140
+ }
141
+
142
+ public Service1Client ( System . ServiceModel . Channels . Binding binding , System . ServiceModel . EndpointAddress remoteAddress ) :
143
+ base ( binding , remoteAddress )
144
+ {
145
+ }
146
+
147
+ public System . Threading . Tasks . Task < string > GetDataAsync ( int value )
148
+ {
149
+ return base . Channel . GetDataAsync ( value ) ;
150
+ }
151
+
152
+ public System . Threading . Tasks . Task < ContractMemberNamedSystem_NS . CompositeType > GetDataUsingDataContractAsync ( ContractMemberNamedSystem_NS . CompositeType composite )
153
+ {
154
+ return base . Channel . GetDataUsingDataContractAsync ( composite ) ;
155
+ }
156
+
157
+ public System . Threading . Tasks . Task < ContractMemberNamedSystem_NS . CompositeType2 > GetDataUsingDataContract2Async ( ContractMemberNamedSystem_NS . CompositeType2 composite )
158
+ {
159
+ return base . Channel . GetDataUsingDataContract2Async ( composite ) ;
160
+ }
161
+
162
+ public virtual System . Threading . Tasks . Task OpenAsync ( )
163
+ {
164
+ return System . Threading . Tasks . Task . Factory . FromAsync ( ( ( System . ServiceModel . ICommunicationObject ) ( this ) ) . BeginOpen ( null , null ) , new System . Action < System . IAsyncResult > ( ( ( System . ServiceModel . ICommunicationObject ) ( this ) ) . EndOpen ) ) ;
165
+ }
166
+
167
+ private static System . ServiceModel . Channels . Binding GetBindingForEndpoint ( EndpointConfiguration endpointConfiguration )
168
+ {
169
+ if ( ( endpointConfiguration == EndpointConfiguration . BasicHttpBinding_IService1 ) )
170
+ {
171
+ System . ServiceModel . BasicHttpBinding result = new System . ServiceModel . BasicHttpBinding ( ) ;
172
+ result . MaxBufferSize = int . MaxValue ;
173
+ result . ReaderQuotas = System . Xml . XmlDictionaryReaderQuotas . Max ;
174
+ result . MaxReceivedMessageSize = int . MaxValue ;
175
+ result . AllowCookies = true ;
176
+ return result ;
177
+ }
178
+ throw new System . InvalidOperationException ( string . Format ( "Could not find endpoint with name \' {0}\' ." , endpointConfiguration ) ) ;
179
+ }
180
+
181
+ private static System . ServiceModel . EndpointAddress GetEndpointAddress ( EndpointConfiguration endpointConfiguration )
182
+ {
183
+ if ( ( endpointConfiguration == EndpointConfiguration . BasicHttpBinding_IService1 ) )
184
+ {
185
+ return new System . ServiceModel . EndpointAddress ( "http://localhost:53593/Service1.svc" ) ;
186
+ }
187
+ throw new System . InvalidOperationException ( string . Format ( "Could not find endpoint with name \' {0}\' ." , endpointConfiguration ) ) ;
188
+ }
189
+
190
+ private static System . ServiceModel . Channels . Binding GetDefaultBinding ( )
191
+ {
192
+ return Service1Client . GetBindingForEndpoint ( EndpointConfiguration . BasicHttpBinding_IService1 ) ;
193
+ }
194
+
195
+ private static System . ServiceModel . EndpointAddress GetDefaultEndpointAddress ( )
196
+ {
197
+ return Service1Client . GetEndpointAddress ( EndpointConfiguration . BasicHttpBinding_IService1 ) ;
198
+ }
199
+
200
+ public enum EndpointConfiguration
201
+ {
202
+
203
+ BasicHttpBinding_IService1 ,
204
+ }
205
+ }
206
+ }
0 commit comments