2 // WSDualHttpBinding.cs
5 // Atsushi Enomoto <atsushi@ximian.com>
7 // Copyright (C) 2005 Novell, Inc. http://www.novell.com
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 using System.Collections.Generic;
30 using System.Net.Security;
31 using System.ServiceModel.Channels;
32 using System.ServiceModel.Configuration;
33 using System.ServiceModel.Description;
37 namespace System.ServiceModel
40 public class WSDualHttpBinding : Binding, IBindingRuntimePreferences
42 bool bypass_proxy_on_local;
43 HostNameComparisonMode host_name_comparison_mode;
44 long max_buffer_pool_size;
45 long max_recv_msg_size;
46 WSDualHttpSecurity security;
47 WSMessageEncoding message_encoding;
49 XmlDictionaryReaderQuotas reader_quotas;
50 ReliableSession reliable_session;
51 EnvelopeVersion env_version;
52 Encoding text_encoding;
53 bool transaction_flow;
54 bool use_default_web_proxy;
56 public WSDualHttpBinding ()
57 : this (WSDualHttpSecurityMode.Message)
61 protected WSDualHttpBinding (WSDualHttpSecurityMode securityMode)
63 security = new WSDualHttpSecurity (securityMode);
66 public Uri ClientBaseAddress {
67 get { throw new NotImplementedException (); }
68 set { throw new NotImplementedException (); }
71 public bool BypassProxyOnLocal {
72 get { return bypass_proxy_on_local; }
73 set { bypass_proxy_on_local = value; }
76 public HostNameComparisonMode HostNameComparisonMode {
77 get { return host_name_comparison_mode; }
78 set { host_name_comparison_mode = value; }
81 public long MaxBufferPoolSize {
82 get { return max_buffer_pool_size; }
83 set { max_buffer_pool_size = value; }
86 public long MaxReceivedMessageSize {
87 get { return max_recv_msg_size; }
88 set { max_recv_msg_size = value; }
91 public WSMessageEncoding MessageEncoding {
92 get { return message_encoding; }
93 set { message_encoding = value; }
96 public Uri ProxyAddress {
97 get { return proxy_address; }
98 set { proxy_address = value; }
101 public XmlDictionaryReaderQuotas ReaderQuotas {
102 get { return reader_quotas; }
103 set { reader_quotas = value; }
106 public ReliableSession ReliableSession {
107 get { return reliable_session; }
110 public override string Scheme {
111 get { return Uri.UriSchemeHttp; }
114 public WSDualHttpSecurity Security {
115 get { return security; }
118 public EnvelopeVersion EnvelopeVersion {
119 get { return env_version; }
122 public Encoding TextEncoding {
123 get { return text_encoding; }
124 set { text_encoding = value; }
127 public bool TransactionFlow {
128 get { return transaction_flow; }
129 set { transaction_flow = value; }
132 public bool UseDefaultWebProxy {
133 get { return use_default_web_proxy; }
134 set { use_default_web_proxy = value; }
137 public override BindingElementCollection
138 CreateBindingElements ()
140 throw new NotImplementedException ();
143 // explicit interface implementations
145 bool IBindingRuntimePreferences.ReceiveSynchronously {
146 get { throw new NotImplementedException (); }