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 ServiceReference
11
+ {
12
+ using System . Runtime . Serialization ;
13
+
14
+
15
+ [ System . Diagnostics . DebuggerStepThroughAttribute ( ) ]
16
+ [ System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.Tools.ServiceModel.Svcutil" , "99.99.99" ) ]
17
+ [ System . Runtime . Serialization . DataContractAttribute ( Name = "TypeReuseCompositeType" , Namespace = "http://schemas.datacontract.org/2004/07/TypesLib" ) ]
18
+ public partial class TypeReuseCompositeType : object
19
+ {
20
+
21
+ private bool BoolValueField ;
22
+
23
+ private string StringValueField ;
24
+
25
+ [ System . Runtime . Serialization . DataMemberAttribute ( ) ]
26
+ public bool BoolValue
27
+ {
28
+ get
29
+ {
30
+ return this . BoolValueField ;
31
+ }
32
+ set
33
+ {
34
+ this . BoolValueField = value ;
35
+ }
36
+ }
37
+
38
+ [ System . Runtime . Serialization . DataMemberAttribute ( ) ]
39
+ public string StringValue
40
+ {
41
+ get
42
+ {
43
+ return this . StringValueField ;
44
+ }
45
+ set
46
+ {
47
+ this . StringValueField = value ;
48
+ }
49
+ }
50
+ }
51
+
52
+ [ System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.Tools.ServiceModel.Svcutil" , "99.99.99" ) ]
53
+ [ System . ServiceModel . ServiceContractAttribute ( ConfigurationName = "ServiceReference.ITypeReuseSvc" ) ]
54
+ public interface ITypeReuseSvc
55
+ {
56
+
57
+ [ System . ServiceModel . OperationContractAttribute ( Action = "http://tempuri.org/ITypeReuseSvc/GetData" , ReplyAction = "http://tempuri.org/ITypeReuseSvc/GetDataResponse" ) ]
58
+ System . Threading . Tasks . Task < BinLib . BinLibrary > GetDataAsync ( int value ) ;
59
+
60
+ [ System . ServiceModel . OperationContractAttribute ( Action = "http://tempuri.org/ITypeReuseSvc/GetDataUsingDataContract" , ReplyAction = "http://tempuri.org/ITypeReuseSvc/GetDataUsingDataContractResponse" ) ]
61
+ System . Threading . Tasks . Task < ServiceReference . TypeReuseCompositeType > GetDataUsingDataContractAsync ( ServiceReference . TypeReuseCompositeType composite ) ;
62
+ }
63
+
64
+ [ System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.Tools.ServiceModel.Svcutil" , "99.99.99" ) ]
65
+ public interface ITypeReuseSvcChannel : ServiceReference . ITypeReuseSvc , System . ServiceModel . IClientChannel
66
+ {
67
+ }
68
+
69
+ [ System . Diagnostics . DebuggerStepThroughAttribute ( ) ]
70
+ [ System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.Tools.ServiceModel.Svcutil" , "99.99.99" ) ]
71
+ public partial class TypeReuseSvcClient : System . ServiceModel . ClientBase < ServiceReference . ITypeReuseSvc > , ServiceReference . ITypeReuseSvc
72
+ {
73
+
74
+ /// <summary>
75
+ /// Implement this partial method to configure the service endpoint.
76
+ /// </summary>
77
+ /// <param name="serviceEndpoint">The endpoint to configure</param>
78
+ /// <param name="clientCredentials">The client credentials</param>
79
+ static partial void ConfigureEndpoint ( System . ServiceModel . Description . ServiceEndpoint serviceEndpoint , System . ServiceModel . Description . ClientCredentials clientCredentials ) ;
80
+
81
+ public TypeReuseSvcClient ( ) :
82
+ base ( TypeReuseSvcClient . GetDefaultBinding ( ) , TypeReuseSvcClient . GetDefaultEndpointAddress ( ) )
83
+ {
84
+ this . Endpoint . Name = EndpointConfiguration . BasicHttpBinding_ITypeReuseSvc . ToString ( ) ;
85
+ ConfigureEndpoint ( this . Endpoint , this . ClientCredentials ) ;
86
+ }
87
+
88
+ public TypeReuseSvcClient ( EndpointConfiguration endpointConfiguration ) :
89
+ base ( TypeReuseSvcClient . GetBindingForEndpoint ( endpointConfiguration ) , TypeReuseSvcClient . GetEndpointAddress ( endpointConfiguration ) )
90
+ {
91
+ this . Endpoint . Name = endpointConfiguration . ToString ( ) ;
92
+ ConfigureEndpoint ( this . Endpoint , this . ClientCredentials ) ;
93
+ }
94
+
95
+ public TypeReuseSvcClient ( EndpointConfiguration endpointConfiguration , string remoteAddress ) :
96
+ base ( TypeReuseSvcClient . GetBindingForEndpoint ( endpointConfiguration ) , new System . ServiceModel . EndpointAddress ( remoteAddress ) )
97
+ {
98
+ this . Endpoint . Name = endpointConfiguration . ToString ( ) ;
99
+ ConfigureEndpoint ( this . Endpoint , this . ClientCredentials ) ;
100
+ }
101
+
102
+ public TypeReuseSvcClient ( EndpointConfiguration endpointConfiguration , System . ServiceModel . EndpointAddress remoteAddress ) :
103
+ base ( TypeReuseSvcClient . GetBindingForEndpoint ( endpointConfiguration ) , remoteAddress )
104
+ {
105
+ this . Endpoint . Name = endpointConfiguration . ToString ( ) ;
106
+ ConfigureEndpoint ( this . Endpoint , this . ClientCredentials ) ;
107
+ }
108
+
109
+ public TypeReuseSvcClient ( System . ServiceModel . Channels . Binding binding , System . ServiceModel . EndpointAddress remoteAddress ) :
110
+ base ( binding , remoteAddress )
111
+ {
112
+ }
113
+
114
+ public System . Threading . Tasks . Task < BinLib . BinLibrary > GetDataAsync ( int value )
115
+ {
116
+ return base . Channel . GetDataAsync ( value ) ;
117
+ }
118
+
119
+ public System . Threading . Tasks . Task < ServiceReference . TypeReuseCompositeType > GetDataUsingDataContractAsync ( ServiceReference . TypeReuseCompositeType composite )
120
+ {
121
+ return base . Channel . GetDataUsingDataContractAsync ( composite ) ;
122
+ }
123
+
124
+ public virtual System . Threading . Tasks . Task OpenAsync ( )
125
+ {
126
+ return System . Threading . Tasks . Task . Factory . FromAsync ( ( ( System . ServiceModel . ICommunicationObject ) ( this ) ) . BeginOpen ( null , null ) , new System . Action < System . IAsyncResult > ( ( ( System . ServiceModel . ICommunicationObject ) ( this ) ) . EndOpen ) ) ;
127
+ }
128
+
129
+ private static System . ServiceModel . Channels . Binding GetBindingForEndpoint ( EndpointConfiguration endpointConfiguration )
130
+ {
131
+ if ( ( endpointConfiguration == EndpointConfiguration . BasicHttpBinding_ITypeReuseSvc ) )
132
+ {
133
+ System . ServiceModel . BasicHttpBinding result = new System . ServiceModel . BasicHttpBinding ( ) ;
134
+ result . MaxBufferSize = int . MaxValue ;
135
+ result . ReaderQuotas = System . Xml . XmlDictionaryReaderQuotas . Max ;
136
+ result . MaxReceivedMessageSize = int . MaxValue ;
137
+ result . AllowCookies = true ;
138
+ return result ;
139
+ }
140
+ throw new System . InvalidOperationException ( string . Format ( "Could not find endpoint with name \' {0}\' ." , endpointConfiguration ) ) ;
141
+ }
142
+
143
+ private static System . ServiceModel . EndpointAddress GetEndpointAddress ( EndpointConfiguration endpointConfiguration )
144
+ {
145
+ if ( ( endpointConfiguration == EndpointConfiguration . BasicHttpBinding_ITypeReuseSvc ) )
146
+ {
147
+ return new System . ServiceModel . EndpointAddress ( "http://localhost:51074/TypeReuseSvc.svc" ) ;
148
+ }
149
+ throw new System . InvalidOperationException ( string . Format ( "Could not find endpoint with name \' {0}\' ." , endpointConfiguration ) ) ;
150
+ }
151
+
152
+ private static System . ServiceModel . Channels . Binding GetDefaultBinding ( )
153
+ {
154
+ return TypeReuseSvcClient . GetBindingForEndpoint ( EndpointConfiguration . BasicHttpBinding_ITypeReuseSvc ) ;
155
+ }
156
+
157
+ private static System . ServiceModel . EndpointAddress GetDefaultEndpointAddress ( )
158
+ {
159
+ return TypeReuseSvcClient . GetEndpointAddress ( EndpointConfiguration . BasicHttpBinding_ITypeReuseSvc ) ;
160
+ }
161
+
162
+ public enum EndpointConfiguration
163
+ {
164
+
165
+ BasicHttpBinding_ITypeReuseSvc ,
166
+ }
167
+ }
168
+ }
0 commit comments