[Microsoft.Build] Fix expected output newline from ProcessWrapper.OutputStreamChanged...
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel / WSDualHttpBinding.cs
1 //
2 // WSDualHttpBinding.cs
3 //
4 // Author:
5 //      Atsushi Enomoto <atsushi@ximian.com>
6 //
7 // Copyright (C) 2005 Novell, Inc.  http://www.novell.com
8 //
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:
16 // 
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
19 // 
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.
27 //
28 using System;
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;
34 using System.Text;
35 using System.Xml;
36
37 namespace System.ServiceModel
38 {
39         [MonoTODO]
40         public class WSDualHttpBinding : Binding, IBindingRuntimePreferences
41         {
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;
48                 Uri proxy_address;
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;
55
56                 public WSDualHttpBinding ()
57                         : this (WSDualHttpSecurityMode.Message)
58                 {
59                 }
60
61                 protected WSDualHttpBinding (WSDualHttpSecurityMode securityMode)
62                 {
63                         security = new WSDualHttpSecurity (securityMode);
64                 }
65
66                 public Uri ClientBaseAddress {
67                         get { throw new NotImplementedException (); }
68                         set { throw new NotImplementedException (); }
69                 }
70
71                 public bool BypassProxyOnLocal {
72                         get { return bypass_proxy_on_local; }
73                         set { bypass_proxy_on_local = value; }
74                 }
75
76                 public HostNameComparisonMode HostNameComparisonMode {
77                         get { return host_name_comparison_mode; }
78                         set { host_name_comparison_mode = value; }
79                 }
80
81                 public long MaxBufferPoolSize {
82                         get { return max_buffer_pool_size; }
83                         set { max_buffer_pool_size = value; }
84                 }
85
86                 public long MaxReceivedMessageSize {
87                         get { return max_recv_msg_size; }
88                         set { max_recv_msg_size = value; }
89                 }
90
91                 public WSMessageEncoding MessageEncoding {
92                         get { return message_encoding; }
93                         set { message_encoding = value; }
94                 }
95
96                 public Uri ProxyAddress {
97                         get { return proxy_address; }
98                         set { proxy_address = value; }
99                 }
100
101                 public XmlDictionaryReaderQuotas ReaderQuotas {
102                         get { return reader_quotas; }
103                         set { reader_quotas = value; }
104                 }
105
106                 public ReliableSession ReliableSession {
107                         get { return reliable_session; }
108                 }
109
110                 public override string Scheme {
111                         get { return Uri.UriSchemeHttp; }
112                 }
113
114                 public WSDualHttpSecurity Security {
115                         get { return security; }
116                 }
117
118                 public EnvelopeVersion EnvelopeVersion {
119                         get { return env_version; }
120                 }
121
122                 public Encoding TextEncoding {
123                         get { return text_encoding; }
124                         set { text_encoding = value; }
125                 }
126
127                 public bool TransactionFlow {
128                         get { return transaction_flow; }
129                         set { transaction_flow = value; }
130                 }
131
132                 public bool UseDefaultWebProxy {
133                         get { return use_default_web_proxy; }
134                         set { use_default_web_proxy = value; }
135                 }
136
137                 public override BindingElementCollection
138                         CreateBindingElements ()
139                 {
140                         throw new NotImplementedException ();
141                 }
142
143                 // explicit interface implementations
144
145                 bool IBindingRuntimePreferences.ReceiveSynchronously {
146                         get { throw new NotImplementedException (); }
147                 }
148         }
149 }