2010-07-02 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Channels / ChangeLog
1 2010-07-02  Atsushi Enomoto  <atsushi@ximian.com>
2
3         * SvcHttpHandlerFactory.cs : remove unused code.
4         * SvcHttpHandler.cs : ditto. Add some code for what new asp.net
5           support will look like.
6
7 2010-07-02  Atsushi Enomoto  <atsushi@ximian.com>
8
9         * Message.cs, MessageImpl.cs, MessageBufferImpl.cs : remove BodyId.
10           XML attributes on s:Body are handled appropriately, not limited to
11           wsu:Id. Added several required overrides to Message and
12           MessageBuffer implementation classes.
13         * SecureMessageGenerator.cs : so, don't use BodyId. Treat it as a
14           specific case but still fallback.
15
16 2010-06-24  Atsushi Enomoto  <atsushi@ximian.com>
17
18         * HttpTransportBindingElement.cs :
19           Use new HTTP channel listener implementation.
20
21 2010-06-23  Atsushi Enomoto  <atsushi@ximian.com>
22
23         * HttpListenerManager.cs : cosmetic code formatting fix.
24
25 2010-06-23  Atsushi Enomoto  <atsushi@ximian.com>
26
27         * HttpListenerManager.cs :
28           No need to get messed around MetadataPublishingInfo anymore.
29
30 2010-06-23  Atsushi Enomoto  <atsushi@ximian.com>
31
32         * HttpListenerManager.cs : remove extra different code paths for
33           channel dispatchers with or without mex endpoints.
34
35 2010-06-23  Atsushi Enomoto  <atsushi@ximian.com>
36
37         * HttpListenerManager.cs : simplify FilterHttpContext().
38
39 2010-06-22  Atsushi Enomoto  <atsushi@ximian.com>
40
41         * HttpListenerManager.cs : add some comments.
42
43 2010-06-21  Atsushi Enomoto  <atsushi@ximian.com>
44
45         * HttpReplyChannel.cs : use MessageVersion.None for GET messages.
46         * HttpChannelListener.cs : remove extra field.
47         * HttpListenerManager.cs : check HelpUrl existence (avoid NRE).
48         * HttpRequestContext.cs : reduce internal field.
49
50 2010-06-17  Atsushi Enomoto  <atsushi@ximian.com>
51
52         * MtomMessageEncodingBindingElement.cs: it's base is abstract, use 
53           context.GetInnerProperty<T>().
54
55 2010-06-17  Atsushi Enomoto  <atsushi@ximian.com>
56
57         * Binding.cs : enable simpler MessageVersion code (issued got fixed).
58         * MtomMessageEncodingBindingElement.cs, TransportBindingElement.cs,
59           TextMessageEncodingBindingElement.cs : return MessageVersion in
60           GetProperty<T>().
61
62 2010-06-17  Atsushi Enomoto  <atsushi@ximian.com>
63
64         * Binding.cs : add commented-out code for MessageVersion replacement.
65         * TransactionFlowBindingElement.cs : implement (almost dummy).
66
67 2010-06-15  Atsushi Enomoto  <atsushi@ximian.com>
68
69         * TcpReplyChannel.cs : accept TCP channel on ReceiveRequest(). This
70           fixes standalone tcp-transport/sample[svc|cli]5.exe test in olive
71           (but not TcpTransportBindingElementTest.SimpleDuplexStreamed.)
72
73 2010-06-15  Atsushi Enomoto  <atsushi@ximian.com>
74
75         * TcpBinaryFrameManager.cs : lock read and write respectively.
76           Finally fixed bug #567672 ('IsOneWay=false' case).
77
78 2010-05-28  Atsushi Enomoto  <atsushi@ximian.com>
79
80         * DirectionalAction.cs : remove old code from winfx beta.
81
82 2010-05-26  Atsushi Enomoto  <atsushi@ximian.com>
83
84         * TcpDuplexSessionChannel.cs, TcpReplyChannel.cs : do not set RelatesTo
85           here. If the contract is not one-way (IsOneWay = false) and there is
86           a callback, the callback message sent to the client should *not* be
87           assigned RelatesTo header here. Just do it in the request-reply
88           context. Do it in OperationInvokerHandler.
89
90 2010-05-21  Atsushi Enomoto  <atsushi@ximian.com>
91
92         * SvcHttpHandler.cs : remove Sleep() hack. The host is now ensured
93           to wait for channels opened.
94
95 2010-05-21  Atsushi Enomoto  <atsushi@ximian.com>
96
97         * SvcHttpHandler.cs : remove unused field. Some code cleanup.
98
99 2010-05-21  Atsushi Enomoto  <atsushi@ximian.com>
100
101         * HttpReplyChannel.cs : use manual reset.
102         * AspNetReplyChannel.cs : make it equivalent to the above.
103
104 2010-05-21  Atsushi Enomoto  <atsushi@ximian.com>
105
106         * HttpChannelListener.cs : do not accept more than one channel at a
107           time. Remove extra fields. Add CancelAsync() implementation.
108
109 2010-05-21  Atsushi Enomoto  <atsushi@ximian.com>
110
111         * HttpListenerManager.cs : add a workaround for Func<>.BeginInvoke()
112           problem that blocked ASP.NET channels working.
113
114 2010-05-19  Andreia Gaita  <avidigal@novell.com>
115
116         * HttpRequestChannel.cs: if the response has no body, create an
117           empty message and return that.
118           Note: the ws-mc protocol defines that the service returns an
119           200 response with an empty body on first connection, this
120           adds support for that (fixes part of #599667)
121
122 2010-05-14  Atsushi Enomoto  <atsushi@ximian.com>
123
124         * DuplexChannelBase.cs
125           ReplyChannelBase.cs
126           TcpChannelListener.cs
127           ChannelListenerBase_1.cs
128           PeerChannelListener.cs
129           HttpChannelListener.cs
130           NamedPipeChannelListener.cs:
131           do the same for channel listener,reply channels and
132           duplex channels.
133
134 2010-05-14  Atsushi Enomoto  <atsushi@ximian.com>
135
136         * ChannelFactoryBase.cs, RequestChannelBase.cs : support
137           MessageVersion in GetProperty<T>() for many transport channels.
138
139 2010-05-14  Atsushi Enomoto  <atsushi@ximian.com>
140
141         * HttpChannelFactory.cs
142           TcpChannelFactory.cs
143           ChannelFactoryBase.cs
144           NamedPipeChannelFactory.cs
145           PeerChannelFactory.cs
146           RequestChannelBase.cs : commonize MessageEncoder.
147           (Commented out GetPrpoerty<T>() for MessageVersion as it is 
148           in doubt yet.)
149
150 2010-05-14  Atsushi Enomoto  <atsushi@ximian.com>
151
152         * MessageHeaders.cs : do not pass empty string array; it almost
153           always results in header-not-found error.
154
155 2010-05-14  Atsushi Enomoto  <atsushi@ximian.com>
156
157         * MessageHeader.cs : do not try to lookup prefix for empty ns.
158
159 2010-05-14  Atsushi Enomoto  <atsushi@ximian.com>
160
161         * MessageImpl.cs : do not use maxBufferSize for initialSize argument
162           for MessageHeaders. Fix OutOfMemoryException for certain usage.
163
164 2010-05-14  Atsushi Enomoto  <atsushi@ximian.com>
165
166         * BindingContext.cs : actually clone is needed everywhere else too.
167         * CustomBinding.cs : remove extra field.
168
169 2010-05-14  Andreia Gaita  <avidigal@novell.com>
170
171         * BindingContext.cs: Copy elements from the original binding only when
172         creating it, never when cloning it. This way, CanBuildInnerChannel can
173         work recursively as it should.
174
175 2010-05-14  Atsushi Enomoto  <atsushi@ximian.com>
176
177         * CustomBinding.cs : return clone collection.
178         * BindingContext.cs :
179           Simply use RemainingBindingElements in builder methods.
180           Clone() should be deep copying (as documented).
181         * BinaryMessageEncodingBindingElement.cs
182           MtomMessageEncodingBindingElement.cs
183           TextMessageEncodingBindingElement.cs
184           HttpCookieContainerBindingElement.cs :
185           do not add itself to RemainingBindingElements.
186         * HttpChannelFactory.cs
187           HttpChannelListener.cs
188           TcpChannelFactory.cs
189           TcpChannelListener.cs
190           MsmqChannelFactory.cs
191           MsmqChannelListener.cs
192           NamedPipeChannelFactory.cs
193           NamedPipeChannelListener.cs
194           PeerChannelFactory.cs
195           PeerChannelListener.cs : do not iterate RemainingBindingElements.
196           Instead, iterate all binding elements in the CustomBinding.
197
198 2010-05-12  Atsushi Enomoto  <atsushi@ximian.com>
199
200         * HttpRequestChannel.cs : implement On[Begin|End][Close|Open] methods.
201
202 2010-04-30  Atsushi Enomoto  <atsushi@ximian.com>
203
204         * HttpListenerManager.cs : use manual reset here to not cause
205           possible inconsistent locking.
206
207 2010-04-28  Atsushi Enomoto  <atsushi@ximian.com>
208
209         * HttpChannelListener.cs, HttpListenerManager.cs :
210           Fix NRE issue in olive/samples/wcf/web-http-binding/samplesvc3.exe.
211
212 2010-04-23  Atsushi Enomoto  <atsushi@ximian.com>
213
214         * HttpListenerManager.cs : fixed the issue that mex_info is never
215           retrieved from the latest channel listener (which could be other
216           listener than the one which was set mex info).
217
218 2010-04-23  Atsushi Enomoto  <atsushi@ximian.com>
219
220         * HttpChannelListener.cs, HttpListenerManager.cs :
221           actually it should be ChannelDispatcher-to-HttpChannelListener,
222           to identify which dispatcher to send reqs.
223
224 2010-04-23  Atsushi Enomoto  <atsushi@ximian.com>
225
226         * HttpReplyChannel.cs : remove old Http Keep-Alive workaround.
227
228 2010-04-23  Atsushi Enomoto  <atsushi@ximian.com>
229
230         * HttpTransportBindingElement.cs,
231           HttpChannelListener.cs,
232           HttpListenerManager.cs : add host-to-http-listener mapping so that
233           they can be managed per host.
234
235 2010-04-21  Atsushi Enomoto  <atsushi@ximian.com>
236
237         * BindingContext.cs : require a TransportBindingElement when
238           building a channel listener.
239
240 2010-04-19  Atsushi Enomoto  <atsushi@ximian.com>
241
242         * HttpReplyChannel.cs : use local var to hold wait handle to avoid
243           possible NRE on field. Based on the patch by Matt Dargavel.
244
245 2010-04-07  Miguel de Icaza  <miguel@novell.com>
246
247         *  BufferManager.cs: Implement the BufferManager. 
248
249 2010-04-07  Atsushi Enomoto  <atsushi@ximian.com>
250
251         * WSSecurityMessageHeader.cs : add FIXME comment.
252
253 2010-04-06  Atsushi Enomoto  <atsushi@ximian.com>
254
255         * HttpRequestChannel.cs : add commented note.
256
257 2010-04-06  Atsushi Enomoto  <atsushi@ximian.com>
258
259         * HttpReplyChannel.cs : fill To header only if it does not exist.
260
261 2010-04-06  Atsushi Enomoto  <atsushi@ximian.com>
262
263         * SecureMessageGenerator.cs : set ReplyTo and To, do not add.
264
265 2010-04-06  Atsushi Enomoto  <atsushi@ximian.com>
266
267         * MessageHeaders.cs : use matching addressing version.
268           Remove header item if the same ones already exist.
269
270 2010-04-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
271
272         * HttpRequestChannel.cs: don't create the wait handle unless it is
273         really needed.
274
275 2010-04-02  Atsushi Enomoto  <atsushi@ximian.com>
276
277         * HttpRequestChannel.cs : use correct max buffer size.
278
279 2010-04-02  Atsushi Enomoto  <atsushi@ximian.com>
280
281         * MessageFault.cs : check null serializer and detail.
282           Make sure to consume s12:Reason EndElement.
283
284 2010-04-02  Atsushi Enomoto  <atsushi@ximian.com>
285
286         * MessageFault.cs : when created from XmlReader, it should not
287           deserialize fault details immediately. This class itself should
288           not do that. Strongly typed FaultContractInfo may want to use the
289           reader (GetReaderAtDetailContents()) for its own deserialization.
290
291 2010-04-01  Atsushi Enomoto  <atsushi@ximian.com>
292
293         * ConnectionOrientedTransportBindingElement.cs,
294           TcpTransportBindingElement.cs : implement GetProperty<T>().
295
296 2010-04-01  Atsushi Enomoto  <atsushi@ximian.com>
297
298         * HttpTransportBindingElement.cs, HttpsTransportBindingElement.cs:
299           implement HttpsTransportBindingElement.GetProperty<T>(). Extend the
300           properties type from HTTP.
301
302 2010-04-01  Atsushi Enomoto  <atsushi@ximian.com>
303
304         * FaultConverter.cs : use addressing version from the message.
305
306 2010-03-30  Atsushi Enomoto  <atsushi@ximian.com>
307
308         * FaultConverter.cs : check envelope version, not addressing version.
309
310 2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>
311
312         * FaultConverter.cs : implemented TryCreateException().
313
314 2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>
315
316         * MessageFault.cs : cosmetic method name clarification.
317
318 2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>
319
320         * XmlReaderBodyWriter.cs, Message.cs, MessageImpl.cs, BodyWriter.cs:
321           fix BodyWriter buffering that dropped in-scope namespaces and thus
322           caused problem on resolving QNames.
323
324 2010-03-26  Atsushi Enomoto  <atsushi@ximian.com>
325
326         * FaultConverter.cs : do implement OnTryCreateFaultMessage() to work
327           with certain Exception types.
328
329 2010-03-26  Atsushi Enomoto  <atsushi@ximian.com>
330
331         * Message.cs : fix explanation on CreateMessage() overloads.
332
333 2010-03-26  Atsushi Enomoto  <atsushi@ximian.com>
334
335         * MessageFault.cs : Write Subcode element correctly and fix wrong
336           Code/Value/Subcode element relationship. Give better error message.
337
338 2010-03-26  Atsushi Enomoto  <atsushi@ximian.com>
339
340         * HttpRequestChannel.cs : ok, no need for conditional code path.
341
342 2010-03-26  Atsushi Enomoto  <atsushi@ximian.com>
343
344         * AddressingVersion.cs : add fault action namespace.
345
346 2010-03-26  Sebastien Pouliot  <sebastien@ximian.com>
347
348         * HttpRequestChannel.cs: There is no WebHeaderCollection.Add 
349         method in SL API
350
351 2010-03-26  Atsushi Enomoto  <atsushi@ximian.com>
352
353         * MessageImpl.cs : pass IsFault argument in OnCreateBufferedCopy().
354
355 2010-03-26  Atsushi Enomoto  <atsushi@ximian.com>
356
357         * HttpRequestContext.cs, AspNetRequestContext.cs : return HTTP 500
358           for fault message.
359
360 2010-03-26  Atsushi Enomoto  <atsushi@ximian.com>
361
362         * HttpRequestChannel.cs : create HttpResponseMessageProperty.
363
364 2010-03-25  Atsushi Enomoto  <atsushi@ximian.com>
365
366         * HttpRequestContext.cs : removed HTTP status rewriting for
367           commented reason.
368
369 2010-03-25  Atsushi Enomoto  <atsushi@ximian.com>
370
371         * HttpRequestChannel.cs : handle only 4xx errors as to not process
372           content stream.
373
374 2010-03-25  Atsushi Enomoto  <atsushi@ximian.com>
375
376         * MessageFault.cs : do not use SOAP11 namespace for fault contents.
377
378 2010-03-24  Atsushi Enomoto  <atsushi@ximian.com>
379
380         * ReplyChannelBase.cs, HttpReplyChannel.cs : add some locking.
381           Patch by Matt Dargavel.
382
383 2010-03-24  Atsushi Enomoto  <atsushi@ximian.com>
384
385         * HttpListenerManager.cs : use lock object which is subject to
386           change. Fix by Matt Dargavel.
387
388 2010-03-24  Atsushi Enomoto  <atsushi@ximian.com>
389
390         * HttpListenerManager.cs : remove consumed HttpListenerContext from
391           the pending queue. Compare "wsdl" request in case insensitive
392           manner. Patch by Matt Dargavel.
393
394 2010-03-24  Atsushi Enomoto  <atsushi@ximian.com>
395
396         * HttpRequestContext.cs : apply the patch by Matt Dargavel, which is
397           supposed to provide detailed 400 error message.
398
399 2010-03-24  Atsushi Enomoto  <atsushi@ximian.com>
400
401         * TransactionFlowBindingElement.cs: revamp the previous change to
402           not regress regarding service metadata.
403
404 2010-03-24  Atsushi Enomoto  <atsushi@ximian.com>
405
406         * ChannelListenerBase.cs, TransactionFlowBindingElement.cs: fix 
407           GetProperty<T>() bug that fails to retrieve properties. (This may
408           be rewritten later if an ongoing change proposal is to take place.)
409
410 2010-03-18  Atsushi Enomoto  <atsushi@ximian.com>
411
412         * ReliableSessionBindingElement.cs,
413           PrivacyNoticeBindingElement.cs,
414           RemoteEndpointMessageProperty.cs : added some missing types.
415
416 2010-03-17  Atsushi Enomoto  <atsushi@ximian.com>
417
418         * MessageHeaders.cs :
419           why does it filter out most of the headers? kill it.
420
421 2010-03-17  Atsushi Enomoto  <atsushi@ximian.com>
422
423         * SvcHttpHandler.cs, AspNetReplyChannel.cs, HttpChannelListener.cs,
424           HttpListenerManager.cs : refactoring on acquiring SvcHttpHandler
425           to not raise "not found" error (see bug #573795).
426
427 2010-03-16  Jb Evain  <jbevain@novell.com>
428
429         * HttpRequestChannel.cs, HttpTransportBindingElement.cs: use
430         MOONLIGHT symbol to disambiguate MonoTouch and Moonlight code.
431
432 2010-03-09  Atsushi Enomoto  <atsushi@ximian.com>
433
434         * HttpListenerManager.cs : For ASP.NET, use correct GenericIdentity
435           type, and use null password unless we find a chance to get password
436           in ASP.NET HttpContext.
437
438 2010-03-03  Atsushi Enomoto  <atsushi@ximian.com>
439
440         * HttpReplyChannel.cs, AspNetReplyChannel.cs, HttpChannelListener.cs,
441           HttpListenerManager.cs : ongoing authentication support. It returns
442           401 as expected, but somehow fails to retrieve user info.
443
444 2010-02-10  Atsushi Enomoto  <atsushi@ximian.com>
445
446         * HttpListenerManager.cs : this change (along with HttpListener
447           implementation) somehow fixes basic auth. connection error...
448
449 2010-02-10  Atsushi Enomoto  <atsushi@ximian.com>
450
451         * MessageHeaders.cs : add !NET_2_1.
452
453 2010-02-10  Atsushi Enomoto  <atsushi@ximian.com>
454
455         * MessageHeader.cs, MessageHeaders.cs : add nasty workaround for
456           typed UniqueId output.
457
458 2010-02-10  Atsushi Enomoto  <atsushi@ximian.com>
459
460         * MessageHeader.cs : no need to treat EndpointAddress as a special
461           case here too.
462
463 2010-02-10  Atsushi Enomoto  <atsushi@ximian.com>
464
465         * MessageHeaders.cs : remove duplicate constant.
466
467 2010-02-10  Atsushi Enomoto  <atsushi@ximian.com>
468
469         * MessageHeader.cs, MessageHeaders.cs: MessageHeader does not treat
470           EndpointAddress as a special case. Instead, each MessageHeaders
471           property should convert it to appropriate serializable objects.
472
473           (Our DataContractSerializer fails to reject EndpointAddress as
474           serializable type, so it's rather a preparation step.)
475
476 2010-02-10  Atsushi Enomoto  <atsushi@ximian.com>
477
478         * MessageHeader.cs, Message.cs : use dictionary string whenever
479           applicable. The binary output on #577139 is getting closer (no
480           idea if it is really about binary output though).
481
482 2010-02-10  Atsushi Enomoto  <atsushi@ximian.com>
483
484         * BinaryMessageEncoder.cs : moved soap_dictionary to Constants.
485
486 2010-02-05  Atsushi Enomoto  <atsushi@ximian.com>
487
488         *  HttpTransportBindingElement.cs : ... and add MONOTOUCH on #ifs.
489
490 2010-02-05  Atsushi Enomoto  <atsushi@ximian.com>
491
492         *  HttpRequestChannel.cs, HttpTransportBindingElement.cs :
493           enable authentication schemes on monotouch.
494
495 2010-02-04  Atsushi Enomoto  <atsushi@ximian.com>
496
497         * SvcHttpHandler.cs : a wait handle could be used for more than one
498           requests and hence it sometimes blocked one reply channel. Now
499           it creates a wait handle for each ASP.NET request so that such
500           multiple use should not occur. This should fix blocking on
501           concurrent requests (it indeed fixes as long as I can see).
502
503 2010-02-04  Atsushi Enomoto  <atsushi@ximian.com>
504
505         * AspNetReplyChannel.cs : remove garbage output.
506
507 2010-02-04  Atsushi Enomoto  <atsushi@ximian.com>
508
509         * SvcHttpHandler.cs : Use lock when it tries to create the service
510           host.
511
512 2010-02-02  Atsushi Enomoto  <atsushi@ximian.com>
513
514         * SvcHttpHandlerFactory.cs : lock when it tries to acquire
515           HttpHandler.
516
517 2010-02-02  Atsushi Enomoto  <atsushi@ximian.com>
518
519         * HttpListenerManager.cs : add another workaround for blocking
520           concurrent calls.
521
522 2010-02-02  Atsushi Enomoto  <atsushi@ximian.com>
523
524         * HttpListenerManager.cs : small refactoring.
525
526 2010-01-22  Atsushi Enomoto  <atsushi@ximian.com>
527
528         * TcpDuplexSessionChannel.cs : added a workaround receiver delay
529           that somehow makes callback client to not cause infinite loop.
530
531 2010-01-22  Atsushi Enomoto  <atsushi@ximian.com>
532
533         * TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
534           DuplexChannelBase.cs : Receive() should rather use TryReceive().
535           It should not be in reverse order.
536
537 2010-01-22  Atsushi Enomoto  <atsushi@ximian.com>
538
539         * HttpReplyChannel.cs, HttpListenerManager.cs :
540           Implement async cancellation in the expected manner (though with
541           some hack). This mostly removed nunit blockers.
542
543 2010-01-22  Atsushi Enomoto  <atsushi@ximian.com>
544
545         * CommunicationObject.cs : fix wrong status changes.
546
547 2010-01-20  Atsushi Enomoto  <atsushi@ximian.com>
548
549         * AddressHeader.cs : XmlSchema.InstanceNamespace didn't exist in 2.1 :(
550
551 2010-01-20  Atsushi Enomoto  <atsushi@ximian.com>
552
553         * AddressHeader.cs : implement remaining bits.
554           Eliminate dependency on NetDataContractSerializer.
555
556 2010-01-20  Atsushi Enomoto  <atsushi@ximian.com>
557
558         * CommunicationObject.cs : in Fault(), do similar work as previous
559           change does.
560
561 2010-01-19  Atsushi Enomoto  <atsushi@ximian.com>
562
563         * CommunicationObject.cs : when process state changes, lock the
564           object to make sure the state transition is valid.
565           Change OnClosed/OnClosing to do the way OnOpened/OnOpening does.
566
567 2010-01-13  Atsushi Enomoto  <atsushi@ximian.com>
568
569         * MessageHeaders.cs : implement SetAction().
570
571 2010-01-13  Atsushi Enomoto  <atsushi@ximian.com>
572
573         * ChannelFactoryBase.cs : fix build.
574
575 2010-01-13  Atsushi Enomoto  <atsushi@ximian.com>
576
577         * ChannelBase.cs : cosmetic API fix for SL3.
578
579 2010-01-13  Atsushi Enomoto  <atsushi@ximian.com>
580
581         * ChannelFactoryBase.cs :
582           implement On{Begin/End}Close() on the generic type.
583
584 2010-01-13  Atsushi Enomoto  <atsushi@ximian.com>
585
586         * HttpChannelFactory.cs, TcpChannelFactory.cs,
587           ChannelFactoryBase.cs, NamedPipeChannelFactory.cs
588           PeerChannelFactory.cs, HttpRequestChannel.cs:
589           fix ChannelFactoryBase API; move On(Begin/End)Open() to internal
590           type and made required changes.
591
592 2010-01-13  Atsushi Enomoto  <atsushi@ximian.com>
593
594         * HttpCookieContainerBindingElement.cs : new.
595         * IHttpCookieContainer.cs : fix type name.
596         * HttpRequestChannel.cs, HttpChannelFactory.cs : support above.
597
598 2010-01-07  Atsushi Enomoto  <atsushi@ximian.com>
599
600         * TcpBinaryFrameManager.cs : treat EOF as interrupted stream too (it
601           does not happen when communicating with .NET client but happens with
602           mono). Seealso FIXME comment.
603         * TcpDuplexSessionChannel.cs : do not try to close session when it
604           failed to read sized message. The connection is already dead.
605
606           Fixed bug #567949.
607
608 2010-01-07  Atsushi Enomoto  <atsushi@ximian.com>
609
610         * TcpDuplexSessionChannel.cs :
611           Write EndRecord only when the connection is available.
612           Remove hack - do let ChannelDispatcher close the channel.
613         * TcpBinaryFrameManager.cs :
614           The socket may be disconnected when trying to read a sized message,
615           so check some socket exceptions.
616           In case the client silently shuts down without EndRecord and
617           reconnects to the server with preamble while expecting a sized
618           message (which is so lame, but that's what .NET often does), refresh
619           preamble and continue.
620
621           This fixes some cases of bug #567949 but not all.
622
623 2010-01-06  Atsushi Enomoto  <atsushi@ximian.com>
624
625         * BinaryMessageEncoder.cs : enable workaround buffering only when
626           the argument stream does *not* support seek. This fixes some
627           net.tcp connection problem.
628
629 2009-12-26  Atsushi Enomoto  <atsushi@ximian.com>
630
631         * TcpBinaryFrameManager.cs : If preamble byte is not available from
632           the client stream, detect it to close the reply or input channel.
633         * TcpRequestChannel.cs : send preamble at each request time.
634           It differentiates communication behavior on such cases that involve
635           single open and multiple requests.
636         * TcpReplyChannel.cs : close the channel only when the channel is
637           oeprated to close i.e. do not close the socket every time.
638           Process preambles on each request (the same as request channel).
639
640 2009-12-26  Atsushi Enomoto  <atsushi@ximian.com>
641
642         * TcpBinaryFrameManager.cs : unsized envelope record may have more
643           than one data block, so consume them accordingly. This should fix
644           large buffer consumption.
645
646 2009-12-21  Atsushi Enomoto  <atsushi@ximian.com>
647
648         * MessageFault.cs : support EnvelopeVersion.None as well, as almost
649           the same as SOAP12.
650
651 2009-12-17  Atsushi Enomoto  <atsushi@ximian.com>
652
653         * HttpRequestContext.cs : for DestinationUnreachable message, this
654           channel returns 400 in .NET.
655
656 2009-12-16  Atsushi Enomoto  <atsushi@ximian.com>
657
658         * BinaryMessageEncoder.cs : added workaround for strange stream
659           consumption error raised by HttpTransport + Binary encoder example.
660         * BinaryMessageEncodingBindingElement.cs:
661           only SOAP 1.2 is allowed for this encoder.
662
663 2009-12-14  Atsushi Enomoto  <atsushi@ximian.com>
664
665         * XmlReaderBodyWriter.cs : don't try to write empty xml.
666
667 2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>
668
669         * HttpRequestChannel.cs : avoid adding duplicate headers. Basically
670           default WebHeaderCollection items are overwritten.
671
672 2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>
673
674         * HttpRequestChannel.cs : when HTTP response was error, do not try
675           to read message but just raise an error.
676
677 2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>
678
679         * MessageHeaders.cs : null can be set as a WS-Addressing header item.
680
681 2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>
682
683         * HttpRequestChannel.cs : WebException.Response might be null.
684
685 2009-12-04  Atsushi Enomoto  <atsushi@ximian.com>
686
687         * ReplyChannelBase.cs : added listener property.
688         * SecurityChannelListener.cs : quick async impl, as ServiceHost has
689           been updated to prefer async by default, a while ago.
690
691 2009-12-04  Atsushi Enomoto  <atsushi@ximian.com>
692
693         * HttpTransportBindingElement.cs : finished all GetProperty() values.
694
695 2009-12-04  Atsushi Enomoto  <atsushi@ximian.com>
696
697         * HttpRequestChannel.cs : disabled carelessly added
698           "UseDefaultCredentials = false" line. It blocked basic auth.
699
700 2009-12-04  Atsushi Enomoto  <atsushi@ximian.com>
701
702         * HttpRequestChannel.cs, HttpChannelFactory.cs,
703           HttpChannelListener.cs, HttpListenerManager.cs :
704           implemented http client authentication and some of corresponding
705           service code. Only client works so far.
706
707 2009-12-03  Atsushi Enomoto  <atsushi@ximian.com>
708
709         * HttpsTransportBindingElement.cs, HttpChannelListener.cs :
710           added URI scheme check.
711
712 2009-12-03  Atsushi Enomoto  <atsushi@ximian.com>
713
714         * TransportSecurityBindingElement.cs : fix 2.1 build.
715
716 2009-12-03  Atsushi Enomoto  <atsushi@ximian.com>
717
718         * HttpsTransportBindingElement.cs :
719           RequireClientCertificate is false by default.
720           Remove extra #if NET_2_1.
721         * SecurityBindingElement.cs :
722           Implement some transport security factory methods.
723         * TransportSecurityBindingElement.cs :
724           It is not ISecurityCapabilities anymore.
725
726 2009-11-25  Atsushi Enomoto  <atsushi@ximian.com>
727
728         * MessageHeaders.cs
729           SecurityBindingElement.cs
730           LocalClientSecuritySettings.cs
731           TransportSecurityBindingElement.cs
732           FaultConverter.cs : They are now part of SL3 API.
733
734 2009-11-17  Atsushi Enomoto  <atsushi@ximian.com>
735
736         * BinaryMessageEncodingBindingElement.cs : changes for 2.1 build.
737
738 2009-11-05  Geoff Norton  <gnorton@novell.com>
739
740         * HttpsTransportBindingElement.cs: Implement basic https transport
741         binding support for Moonlight and MonoTouch
742
743 2009-10-22  Atsushi Enomoto  <atsushi@ximian.com>
744
745         * HttpListenerManager.cs : remove CWLs.
746
747 2009-10-22  Atsushi Enomoto  <atsushi@ximian.com>
748
749         * SvcHttpHandler.cs : move back previous listener selector code in
750           ProcessRequest(). Unlike HttpListener, ASP.NET does not refine
751           and differentiate requests to deeper paths (such as /jsdebug), so
752           we need such refinement here.
753
754 2009-10-22  Atsushi Enomoto  <atsushi@ximian.com>
755
756         * HttpListenerManager.cs : dependent fix to ServiceMetadataExtension
757           changes.
758
759 2009-10-22  Atsushi Enomoto  <atsushi@ximian.com>
760
761         * SvcHttpHandler.cs, HttpReplyChannel.cs, AspNetReplyChannel.cs,
762           HttpChannelListener.cs, HttpListenerManager.cs :
763           Similar refactoring on ASP.NET side to the previous one.
764           Added ASP.NET implementation of HttpListenerManager and use some
765           part of it in SvcHttpHandler (ASP.NET stack does not fully make use
766           of the manager yet).
767           Rewrote AspNetReplyChannel to become almost the same as
768           HttpSimpleReplyChannel, to hopefully unify them later.
769           Now it dispatches requests to *.svc for wsdl, help and SOAP as long
770           as ServiceThrottle has MaxConcurrentSessions=1. Also REST calls
771           are still broken.
772
773 2009-10-20  Atsushi Enomoto  <atsushi@ximian.com>
774
775         * HttpReplyChannel.cs, HttpChannelListener.cs, HttpListenerManager.cs:
776           Refactoring on listener manager to correctly handle wsdl and help
777           requests for such case that they conflict in addressing. Now it
778           can correctly distinguish service calls, WSDL requests and help
779           requests when all of them point to "http://localhost/foo.svc"
780           (which is very common case that the user does not change Http*Url).
781
782 2009-10-16  Atsushi Enomoto  <atsushi@ximian.com>
783
784         * ChannelListenerBase.cs : add Properties property to add arbitrary
785           properties handy (only inside this assembly).
786
787 2009-10-16  Atsushi Enomoto  <atsushi@ximian.com>
788
789         * HttpReplyChannel.cs : fix warning.
790
791 2009-10-15  Atsushi Enomoto  <atsushi@ximian.com>
792
793         * HttpReplyChannel.cs, AspNetReplyChannel.cs : set Via property.
794
795 2009-10-15  Atsushi Enomoto  <atsushi@ximian.com>
796
797         * HttpReplyChannel.cs : make sure to release wait lock.
798         * HttpChannelListener.cs : session channels are not supported, so
799           remove relevant NIEs.
800
801 2009-10-15  Sebastien Pouliot  <sebastien@ximian.com>
802
803         * HttpRequestChannel.cs (WaitEnd): Neither Moonlight nor MonoTouch
804         support contexts so we call the non-overloaded WaitOne method 
805         (which defaults to false).
806
807 2009-10-13  Atsushi Enomoto  <atsushi@ximian.com>
808
809         * SvcHttpHandler.cs, AspNetReplyChannel.cs, HttpChannelListener.cs:
810           significant rewrite to cooperate wcf handler and asp.net handler
811           to not mix multiple WCF listener within the asp.net handler.
812           So far it mostly works when 1) there are no ChannelDispatchers
813           that have an identical listen Uri and 2) MaxConcurrentSessions is
814           1 (must be explicitly set).
815
816 2009-10-13  Atsushi Enomoto  <atsushi@ximian.com>
817
818         * CommunicationObject.cs : give better state error description.
819
820 2009-10-09  Atsushi Enomoto  <atsushi@ximian.com>
821
822         * CommunicationObject.cs : OnOpening() and OnOpened() require calls
823           to base methods. This resulted in not a few changes everywhere.
824
825 2009-10-07  Atsushi Enomoto  <atsushi@ximian.com>
826
827         * IHttpCookieContainer.cs : new 2.1-only interface (no use).
828
829 2009-10-06  Atsushi Enomoto  <atsushi@ximian.com>
830
831         * SvcHttpHandler.cs : use file path given by the factory to
832           construct BaseAddresses. Requests to "test.svc/jsdebug" should
833           not be handled as request to "jsdebug" file, it's rather an
834           "argument" to "test.svc".
835
836 2009-10-06  Atsushi Enomoto  <atsushi@ximian.com>
837
838         * SvcHttpHandler.cs, HttpChannelListener.cs : some significant
839           rewrite to handle shutdown situation better. The listeners should
840           not close channels that it opened. Instead, just stop accepting
841           further requests. Removed blocking mutex on WaitForRequest().
842           Now xsp shuts down as expected.
843
844 2009-10-06  Atsushi Enomoto  <atsushi@ximian.com>
845
846         * HttpReplyChannel.cs : lock list when releasing its content contexts.
847         * AspNetReplyChannel.cs : send EndRequest() to handler when it is
848           closing.
849
850 2009-10-06  Atsushi Enomoto  <atsushi@ximian.com>
851
852         * SvcHttpHandlerFactory.cs : remove todo.
853         * ReplyChannelBase.cs : add comment.
854
855 2009-10-02  Atsushi Enomoto  <atsushi@ximian.com>
856
857         * HttpTransportBindingElement.cs, SvcHttpHandlerFactory.cs :
858           revert the change, to use internal asp.net state again.
859         * SvcHttpHandler.cs : add VirtualPathExtension.
860
861 2009-10-02  Atsushi Enomoto  <atsushi@ximian.com>
862
863         * HttpReplyChannel.cs, AspNetReplyChannel.cs, AspNetRequestContext.cs:
864           asp.net response was not written correctly.
865           Fill HttpRequestMessageProperty to get handle WSDL requests
866           processed in ServiceMetadataExtension without NRE.
867           Remove wrong HttpListenerContext iteration at Abort and Close in
868           common base class and move it to non-asp derived channel.
869
870 2009-10-02  Atsushi Enomoto  <atsushi@ximian.com>
871
872         * SvcHttpHandler.cs : remove unused code.
873
874 2009-09-30  Jb Evain  <jbevain@novell.com>
875
876         * HttpRequestChannel.cs: When compiling for MonoTouch, avoid
877         to use any of the remoting features.
878
879 2009-09-30  Atsushi Enomoto  <atsushi@ximian.com>
880
881         * SvcHttpHandlerFactory.cs, HttpTransportBindingElement.cs :
882           use AspNetCompatibilityEnabled.
883         * SvcHttpHandler.cs : disable ApplyConfiguration(). It should be done
884           at ServiceHostBase.
885         * AspNetReplyChannel.cs : remove extra field.
886
887 2009-09-29  Atsushi Enomoto  <atsushi@ximian.com>
888
889         * HttpReplyChannel.cs : remove extra field.
890
891 2009-09-29  Atsushi Enomoto  <atsushi@ximian.com>
892
893         * AspNetRequestContext.cs : remove CWL.
894
895 2009-09-29  Atsushi Enomoto  <atsushi@ximian.com>
896
897         * AspNetReplyChannel.cs, AspNetRequestContext.cs : close HttpContext
898           only after AspNetRequestContext is closed. Do not close it
899           immediately after receiving the context. (HttpRuntime destructs it
900           and further uses then becomes impossible.)
901
902 2009-09-29  Atsushi Enomoto  <atsushi@ximian.com>
903
904         * AspNetReplyChannel.cs, HttpReplyChannel.cs : add some comments.
905         * SvcHttpHandlerFactory.cs, SvcHttpHandler.cs, HttpChannelListener.cs:
906           Make sure that AspNetChannelListener is bound to correct
907           SvcHttpHandler, regardless of specific request URI. It is required
908           for both WSDL requests and RESTful binding requests.
909
910 2009-09-14  Atsushi Enomoto  <atsushi@ximian.com>
911
912         * MessageProperties.cs : fix CopyProperties() behavior to not
913           clear existing items. Make all properties call this[name].
914
915 2009-09-14  Atsushi Enomoto  <atsushi@ximian.com>
916
917         * HttpTransportBindingElement.cs : fix 2.1 build.
918
919 2009-09-14  Atsushi Enomoto  <atsushi@ximian.com>
920
921         * TransportBindingElement.cs : another GetProperty fix, iterate
922           other binding elements.
923
924 2009-09-14  Atsushi Enomoto  <atsushi@ximian.com>
925
926         * HttpTransportBindingElement.cs, PeerTransportBindingElement.cs :
927           some GetProperty() implementation.
928
929 2009-09-14  Atsushi Enomoto  <atsushi@ximian.com>
930
931         * HttpListenerManager.cs : release HttpListener and avoid extra
932           close process more than once.
933
934 2009-09-11  Atsushi Enomoto  <atsushi@ximian.com>
935
936         * HttpChannelListener.cs : do not iterate channel list to close
937           channels which in turn removes them from the list while iteration.
938
939 2009-09-06  Atsushi Enomoto  <atsushi@ximian.com>
940
941         * HttpRequestChannel.cs : Fix message version member comparison.
942           Double-quote SOAPAction. Remove extra Exception.
943         * HttpReplyChannel.cs : ditto for version comparison. Unquote above.
944         * HttpRequestContext.cs : when addressing is None, remove action
945           from the message.
946
947 2009-09-04  Atsushi Enomoto  <atsushi@ximian.com>
948
949         * SvcHttpHandler.cs : set Uri property based on baseAddresses and
950           path, to pick those endpoints that are added at custom factories.
951
952 2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>
953
954         * SvcHttpHandler.cs : apply configuration, and if there is still no
955           endpoint, then add default one.
956
957 2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>
958
959         * SvcHttpHandler.cs : another URL to make relative.
960
961 2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>
962
963         * SvcHttpHandlerFactory.cs : some GetHandler changes.
964         * SvcHttpHandler.cs : significant changes on receiver structure. Now
965           ProcessRequest() stores pending requests (this might be extraneous,
966           but maybe useful when it implements async handler). Also removed
967           reply_channel field as it may become to handle multiple requests.
968         * HttpChannelListener.cs : bind to corresponding SvcHttpHandler.
969         * AspNetReplyChannel.cs : make it receive requests like
970           HttpReplyChannel (for HttpListener) to make them consistent.
971
972 2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>
973
974         * AspNetRequestContext.cs, HttpRequestContext.cs :
975           fix NRE on HttpListenerContext for AspNetRequestContext (mismatch)
976           by splitting HttpListener-based context out from common code base.
977
978 2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>
979
980         * SvcHttpHandler.cs : use baseAddresses in ServiceHost and make URIs
981           relative or absolute. new Uri ("/foobar") doesn't work on non-unix
982           environment.
983
984 2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>
985
986         * SvcHttpHandlerFactory.cs : make use of BuildManager aid. Now it
987           loads types from system assemblies appropriately.
988
989 2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>
990
991         * XmlReaderBodyWriter.cs : implement OnCreateBufferedCopy()
992           for XmlReader input.
993
994 2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>
995
996         * HttpRequestMessageProperty.cs : fix default values.
997
998 2009-08-31  Atsushi Enomoto  <atsushi@ximian.com>
999
1000         * HttpChannelFactory.cs, HttpRequestChannel.cs,
1001           ChannelFactoryBase.cs : fix to previous one; allow null Via uri.
1002           Check ManualAddressing value and reject address-missing ones.
1003
1004 2009-08-31  Atsushi Enomoto  <atsushi@ximian.com>
1005
1006         * HttpChannelFactory.cs : reject URI mismatch cases when required.
1007
1008 2009-08-26  Atsushi Enomoto  <atsushi@ximian.com>
1009
1010         * PeerDuplexChannel.cs : When received Connect() from neighbor,
1011           add the peer to its internal list.
1012           Finally ChatApplication got working.
1013
1014 2009-08-26  Atsushi Enomoto  <atsushi@ximian.com>
1015
1016         * PeerDuplexChannel.cs : since the channel factory is per instance,
1017           do not reuse factory that is tied to different callback instance.
1018           It resolved the issue that mono callback client didn't receive
1019           messages from the client itself.
1020
1021 2009-08-26  Atsushi Enomoto  <atsushi@ximian.com>
1022
1023         * PeerDuplexChannel.cs : in the Welcome response, return the NodeId
1024           of the receiver, not the requestor. It resolved the issue that
1025           .NET client didn't send further messages to mono server.
1026
1027 2009-08-26  Atsushi Enomoto  <atsushi@ximian.com>
1028
1029         * PeerDuplexChannel.cs : remove some comment on [MC-PRCH] behavior.
1030         * TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs,
1031           TcpReplyChannel.cs, TcpRequestChannel.cs,
1032           NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs:
1033           rename EndRecord handling method to appropriate one.
1034           Write EndRecord from recipient too.
1035
1036 2009-08-24  Atsushi Enomoto  <atsushi@ximian.com>
1037
1038         * PeerDuplexChannel.cs : add PeerFlooder header (see comment).
1039           Process PeerTo header to upgrade Message To header. Now mono
1040           service accepts mono client (somehow not true for .NET client).
1041
1042 2009-08-24  Atsushi Enomoto  <atsushi@ximian.com>
1043
1044         * TcpDuplexSessionChannel.cs, TcpRequestChannel.cs,
1045           NamedPipeRequestChannel.cs : no need to add ReplyTo headers.
1046
1047 2009-08-24  Atsushi Enomoto  <atsushi@ximian.com>
1048
1049         * PeerDuplexChannel.cs : fix PeerTo/PeerVia header namespace.
1050
1051 2009-08-24  Atsushi Enomoto  <atsushi@ximian.com>
1052
1053         * TcpDuplexSessionChannel.cs : check channel state before processing
1054           Send and Receive.
1055
1056 2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>
1057
1058         * NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs,
1059           NamedPipeChannelFactory.cs, NamedPipeChannelListener.cs :
1060           ongoing works, not working at all yet.
1061
1062 2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>
1063
1064         * TcpChannelListener.cs, TcpReplyChannel.cs :
1065           cosmetic cleanup and corrections.
1066
1067 2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>
1068
1069         * TcpChannelFactory.cs : use expected Via uri.
1070           Remove extra NIE stuff that are implemented in base.
1071
1072 2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>
1073
1074         * TcpDuplexSessionChannel.cs : remove extra code.
1075
1076 2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>
1077
1078         * PeerDuplexChannel.cs : ongoing implementation towards get callback
1079           replies on peer connector clients (not working as duplex client
1080           callback is not working yet).
1081
1082 2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>
1083
1084         * TcpDuplexSessionChannel.cs : in callback client channels,
1085           OperationContext.IncomingMessageHeaders is null.
1086
1087 2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>
1088
1089         * MessageHeaders.cs : duplicate check was sloppy.
1090
1091 2009-08-18  Atsushi Enomoto  <atsushi@ximian.com>
1092
1093         * Message.cs, MessageImpl.cs, BodyWriter.cs :
1094           Implement BodyWriter.OnCreateBufferedCopy() and use it.
1095
1096 2009-08-18  Atsushi Enomoto  <atsushi@ximian.com>
1097
1098         * ReplyChannelBase.cs : initialize field.
1099
1100 2009-08-17  Atsushi Enomoto  <atsushi@ximian.com>
1101
1102         * ReplyChannelBase.cs, DuplexChannelBase.cs, RequestChannelBase.cs:
1103           implement GetProperty<T>() and return its channel manager.
1104
1105 2009-08-17  Atsushi Enomoto  <atsushi@ximian.com>
1106
1107         * PeerDuplexChannel.cs : ongoing implementation. Fix wrong peer
1108           destination address in Connect() request. To repeat sending
1109           request, use buffered copy. Set some peer-channel specific
1110           header items. (todo: and consume them.)
1111
1112 2009-08-17  Atsushi Enomoto  <atsushi@ximian.com>
1113
1114         * Message.cs : state is set only after WriteBodyContents().
1115
1116 2009-08-17  Atsushi Enomoto  <atsushi@ximian.com>
1117
1118         * MessageHeaders.cs : eliminate wrong use of
1119           ReadElementContentAsString() (it is not always simple string).
1120
1121 2009-08-17  Atsushi Enomoto  <atsushi@ximian.com>
1122
1123         * MessageHeaders.cs : when the value is null, do not try to
1124           deserialize EndpointAddress.
1125
1126 2009-08-17  Atsushi Enomoto  <atsushi@ximian.com>
1127
1128          * MessageHeader.cs : add Value property. (Forgot dependent change.)
1129
1130 2009-08-17  Atsushi Enomoto  <atsushi@ximian.com>
1131
1132          * MessageHeaders.cs : GetHeader<T>() could mostly skip extra
1133            serialization and deserialization of values.
1134
1135 2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>
1136
1137         * PeerDuplexChannel.cs : handle Welcome and Refuse at client side.
1138           Now simply use connector contract.
1139
1140 2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>
1141
1142         * PeerDuplexChannel.cs : handle Disconnect(). Fix URLs a bit.
1143
1144 2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>
1145
1146         * TcpChannelListener.cs : do not try to compare dead connection's
1147           IPEndPoint (it raises an error).
1148
1149 2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>
1150
1151         * MessageHeaders.cs : allow null header value on each specific setter.
1152
1153 2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>
1154
1155         * DuplexChannelBase.cs, TcpDuplexSessionChannel.cs :
1156           get local and remote address of connected counterpart to get
1157           callback channel connected.
1158         * PeerDuplexChannel.cs : remove FIXME wrt above.
1159
1160 2009-08-07  Atsushi Enomoto  <atsushi@ximian.com>
1161
1162         * PeerDuplexChannel.cs : add fixme comment and remove extra FIXME.
1163
1164 2009-08-07  Atsushi Enomoto  <atsushi@ximian.com>
1165
1166         * MessageHeader.cs : fill IsReferenceParameter.
1167
1168 2009-08-06  Atsushi Enomoto  <atsushi@ximian.com>
1169
1170         * ReplyChannelBase.cs, TcpReplyChannel.cs, HttpReplyChannel.cs:
1171           implement remaining async methods and LocalAddress.
1172
1173 2009-08-05  Atsushi Enomoto  <atsushi@ximian.com>
1174
1175         * PeerDuplexChannel.cs : ongoing listener refactoring. Now it uses
1176           ServiceHost to process neighbor connection (not sure if this is
1177           right way to go though ...).
1178
1179 2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>
1180
1181         * PeerDuplexChannel.cs : ongoing [MC-PRCH] implementation. Rewrote
1182           connection part to use new internal IPeerConnectorContract for
1183           neighbor connection.
1184
1185 2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>
1186
1187         * ChannelListenerBase_1.cs, TcpChannelListener.cs,
1188           PeerChannelListener.cs, HttpChannelListener.cs :
1189           support ListenUri accordingly too so that it could be used when
1190           it is different from LocalAddress.Uri.
1191
1192 2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>
1193
1194         * TcpChannelFactory.cs, TcpDuplexSessionChannel.cs,
1195           TcpRequestChannel.cs : use Via uri to validate and connect.
1196
1197 2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>
1198
1199         * RequestChannelBase.cs, DuplexChannelBase.cs :
1200           Return endpoint address Uri when no explicit Via uri is specified.
1201         * ChannelFactoryBase.cs : Remove extra async close methods.
1202           Add async open methods. Reject null EndpointAddress.
1203         * PeerChannelFactory.cs : remove async open methods (now in base).
1204
1205 2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>
1206
1207         * PeerDuplexChannel.cs : set correct message endpoint (To header).
1208
1209 2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>
1210
1211         * TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
1212           DuplexChannelBase.cs : set LocalAddress property at base.
1213
1214 2009-07-30  Atsushi Enomoto  <atsushi@ximian.com>
1215
1216         * PeerDuplexChannel.cs : ongoing refactoring to work both as
1217           listener and client. Now it creates a listening peer node, and
1218           creates a set of TCP client channels for each peer in the mesh.
1219
1220           (EndpointAddress must be fixed to not filter out correct inputs).
1221
1222 2009-07-30  Atsushi Enomoto  <atsushi@ximian.com>
1223
1224         * PeerChannelListener.cs : do not accept more than one channel
1225           which results in lots of listening peer node. Only one is enough.
1226
1227 2009-07-30  Atsushi Enomoto  <atsushi@ximian.com>
1228
1229         * DuplexChannelBase.cs : fix wrong loop implementation.
1230
1231 2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>
1232
1233         * TcpChannelListener.cs : to avoid creating two or more channels
1234           for one remote endpoint, check existing remote endpoints and
1235           ignore such connections (it must be handled in different thread
1236           fired by ChannelDispatcher loop).
1237
1238 2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>
1239
1240         * TcpReplyChannel.cs : make sure to not try to receive request when
1241           it is already closed.
1242
1243 2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>
1244
1245         * TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
1246           some mannerless clients [*1] do not send EndRecord accordingly, but
1247           such channels at listener side should not be kept open. So, close
1248           disconnected channels when the listener needs to accept another
1249           one.
1250           [*1] see olive/samples/wcf/clientbase/samplecli4.cs.
1251
1252 2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>
1253
1254         * TcpDuplexSessionChannel.cs :
1255           Remove extra NIE overrides.
1256           Implement OnAbort() apart from OnClose().
1257           For duplex session channel, unlike reply channel, it must acquire
1258           TCP connection before OnOpen(), otherwise ChannelDispatcher
1259           releases the connection acceptance WaitHandle and the detected
1260           live connection may be stolen by another channel acceptor.
1261
1262 2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>
1263
1264         * HttpRequestChannel.cs : implement OnAbort().
1265
1266 2009-07-24  Atsushi Enomoto  <atsushi@ximian.com>
1267
1268         * PeerChannelListener.cs : set source field. Remove unnecessary NIE.
1269         * DuplexChannelBase.cs : comment out some extra fields (so far).
1270         * PeerDuplexChannel.cs : pass valid EndpointAddress to PeerNodeImpl.
1271
1272 2009-07-24  Atsushi Enomoto  <atsushi@ximian.com>
1273
1274         * PeerCustomResolverBindingElement.cs : add some null checks.
1275
1276 2009-07-23  Atsushi Enomoto  <atsushi@ximian.com>
1277
1278         * TcpChannelListener.cs, TcpReplyChannel.cs, TcpRequestChannel.cs:
1279           Acquire TcpClient for each request/reply. Now it is fully
1280           interoperable with .NET.
1281
1282 2009-07-23  Atsushi Enomoto  <atsushi@ximian.com>
1283
1284         * TcpReplyChannel.cs, TcpRequestChannel.cs: it somehow adds/expects
1285           ReplyTo and MessageId (though it is session-less), and it expects
1286           EndRecord at weird stage, inconsistent with [MC-NMF]...
1287           Now .NET service accepts one mono client request.
1288
1289 2009-07-23  Atsushi Enomoto  <atsushi@ximian.com>
1290
1291         * TcpReplyChannel.cs, TcpRequestChannel.cs, TcpBinaryFrameManager.cs:
1292           Send and receive unsized message terminator at once.
1293           Send EndRecord mutually. Got one .net client request working.
1294
1295 2009-07-23  Atsushi Enomoto  <atsushi@ximian.com>
1296
1297         * BinaryMessageEncoder.cs : revert the previous dictionary change.
1298           They are indeed used for non-in-band-dictionary messages.
1299
1300 2009-07-23  Atsushi Enomoto  <atsushi@ximian.com>
1301
1302         * TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs:
1303           split out binary frame manager class into separate file.
1304
1305 2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>
1306
1307         * TcpReplyChannel.cs : new reply channel implementation.
1308         * TcpChannelListener.cs : use above for streamed reply channel.
1309         * TcpDuplexSessionChannel.cs : more streaming mode support.
1310         * TcpRequestChannel.cs : a couple of updates to get it working
1311           with the reply channel above. Still some issues on .NET interop.
1312
1313 2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>
1314
1315         * RequestContext.cs : added internal derived class that implements
1316           some members.
1317
1318 2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>
1319
1320         * BinaryMessageEncoder.cs : for non-session reader and writer, do not
1321           use dictionary.
1322
1323 2009-07-17  Atsushi Enomoto  <atsushi@ximian.com>
1324
1325         * PeerDuplexChannel.cs: add the registered node itself to peer list.
1326           (The messaging must be done as TCP request/reply pattern, so it's
1327           not working yet.)
1328
1329 2009-07-17  Atsushi Enomoto  <atsushi@ximian.com>
1330
1331         * TcpRequestChannel.cs : new channel file (TCP for request/reply
1332           messaging pattern). The messaging part is not working yet.
1333         * TcpChannelFactory.cs : support IRequestChannel.
1334         * TcpDuplexSessionChannel.cs : add unsized message support.
1335
1336 2009-07-17  Atsushi Enomoto  <atsushi@ximian.com>
1337
1338         * HttpRequestChannel.cs, RequestChannelBase.cs :
1339           A couple of async members are now implemented in the base class.
1340           Ditto for EndpointAddress and Via.
1341
1342 2009-07-10  Atsushi Enomoto  <atsushi@ximian.com>
1343
1344         * PeerDuplexChannel.cs : now it implements some of node management
1345           functionality and Send operation. The receiver part is not yet.
1346
1347 2009-07-10  Atsushi Enomoto  <atsushi@ximian.com>
1348
1349         * TcpChannelListener.cs, TcpDuplexSessionChannel.cs : do not pass
1350           timeout to channel constructor. it does not make sense.
1351
1352 2009-07-10  Atsushi Enomoto  <atsushi@ximian.com>
1353
1354         * PeerChannelFactory.cs, PeerChannelListener.cs : add MessageEncoder
1355           as common interface member, and use binary encoder (not text).
1356
1357 2009-07-09  Atsushi Enomoto  <atsushi@ximian.com>
1358
1359         * PeerDuplexChannel.cs : PeerNode constructor argument changes.
1360
1361 2009-07-08  Atsushi Enomoto  <atsushi@ximian.com>
1362
1363         * PeerDuplexChannel.cs, PeerChannelListener.cs, PeerOutputChannel.cs,
1364           PeerInputChannel.cs, PeerChannelFactory.cs : those channels are
1365           going to be unified to PeerDuplexChannel. And it is likely that
1366           input and output functionalities are to be unified too.
1367
1368 2009-07-08  Atsushi Enomoto  <atsushi@ximian.com>
1369
1370         * TcpChannelFactory.cs : (TcpChannelInfo) ease type restriction. I
1371           may have to reuse it for peer transport.
1372         * PeerChannelListener.cs : add binding member.
1373         * PeerDuplexChannel.cs : remove NIE overrides. Fill fields a bit.
1374
1375 2009-07-08  Atsushi Enomoto  <atsushi@ximian.com>
1376
1377         * ChannelFactoryBase.cs, HttpChannelFactory.cs,
1378           PeerChannelFactory.cs : close opened channels at OnClose() as
1379           documented. Implement async methods.
1380         * PeerChannelListener.cs : removed some NIE overrides.
1381
1382 2009-07-02  Atsushi Enomoto  <atsushi@ximian.com>
1383
1384         * DuplexChannelBase.cs : some more async methods.
1385
1386 2009-06-29  Atsushi Enomoto  <atsushi@ximian.com>
1387
1388         * TcpDuplexSessionChannel.cs : on Abort(), do just Close() within
1389           (almost) no time.
1390         * TcpChannelListener.cs : accept multiple channels at a time.
1391
1392 2009-06-29  Atsushi Enomoto  <atsushi@ximian.com>
1393
1394         * TcpDuplexSessionChannel.cs : do not output all (stored) writer
1395           session strings but output only those new ones in current message.
1396           This fixes inconsistent body output in repetitive use of sender.
1397
1398 2009-06-26  Atsushi Enomoto  <atsushi@ximian.com>
1399
1400         * TcpDuplexSessionChannel.cs : handle EndRecord for repetitive
1401           operation that does not involve session.
1402           Preserve writer session as well as reader session.
1403         * MessageHeaders.cs : take name and namespace into consideration
1404           when creating a serializer.
1405
1406 2009-06-25  Atsushi Enomoto  <atsushi@ximian.com>
1407
1408         * TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
1409           Made required changes for repeated use of message exchanges.
1410           Hold binary reader session. The channels use it incrementally.
1411           Preambles are handled at Open, and EndRecords are handled at
1412           Close, Add session shutdown hook here (not working yet though).
1413
1414 2009-06-18  Atsushi Enomoto  <atsushi@ximian.com>
1415
1416         * ChannelListenerBase_1.cs : added cancellation hook here too.
1417           HttpChannelListener.cs : use above.
1418           Do not allow parallel channel creation (this listener does not
1419           allow more than one AcceptChannel().
1420
1421 2009-06-18  Atsushi Enomoto  <atsushi@ximian.com>
1422
1423         * ReplyChannelBase.cs, HttpReplyChannel.cs :
1424           Add cancellation hook for async TryReceiveRequest.
1425
1426 2009-06-18  Atsushi Enomoto  <atsushi@ximian.com>
1427
1428         * HttpChannelListener.cs, HttpListenerManager.cs :
1429           slightly improved BuildChannelListener().
1430           Implement OnAbort() and differentiate it from OnClose().
1431
1432 2009-06-18  Atsushi Enomoto  <atsushi@ximian.com>
1433
1434         * TcpDuplexSessionChannel.cs : remove NIE stubs.
1435
1436 2009-06-18  Atsushi Enomoto  <atsushi@ximian.com>
1437
1438         * DuplexChannelBase.cs : simple async delegate calls here too.
1439
1440 2009-06-16  Atsushi Enomoto  <atsushi@ximian.com>
1441
1442         * ReplyChannelBase.cs : cosmetic dependency reduction on listener.
1443
1444 2009-06-16  Atsushi Enomoto  <atsushi@ximian.com>
1445
1446         * HttpReplyChannel.cs : cosometic simplification.
1447
1448 2009-06-16  Atsushi Enomoto  <atsushi@ximian.com>
1449
1450         * HttpRequestChannel.cs : Fixed timeout handling. It was causing
1451           infinite block in 2.0 profile.
1452
1453 2009-06-12  Atsushi Enomoto  <atsushi@ximian.com>
1454
1455         * TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
1456           more careful close to avoid NRE.
1457
1458 2009-06-12  Atsushi Enomoto  <atsushi@ximian.com>
1459
1460         * HttpChannelListener.cs : do not Close() more than once (though
1461           it is allowed to call it twice, we don't reject it; just ignore).
1462
1463 2009-06-12  Atsushi Enomoto  <atsushi@ximian.com>
1464
1465         * CustomBinding.cs : copy timeouts from argument binding in copy ctr.
1466
1467 2009-06-11  Atsushi Enomoto  <atsushi@ximian.com>
1468
1469         * HttpReplyChannel.cs : reject multiple WaitForRequest calls.
1470           Temporarily disable HTTP Keep-Alive since it somehow results in
1471           wrong reuse of connection (shown as NRE in HttpConnection).
1472           Make sure to close RequestContext which was created from it.
1473         * HttpRequestContext.cs : simplify.
1474
1475 2009-06-11  Atsushi Enomoto  <atsushi@ximian.com>
1476
1477         * HttpChannelListener.cs, TcpChannelListener.cs,
1478           ChannelListenerBase_1.cs : put common internal listener base
1479           and let it handle those async stuff.
1480
1481 2009-06-10  Atsushi Enomoto  <atsushi@ximian.com>
1482
1483         * ReplyChannelBase.cs : fix wrong null delegate check point.
1484
1485 2009-06-10  Atsushi Enomoto  <atsushi@ximian.com>
1486
1487         * HttpReplyChannel.cs, ReplyChannelBase.cs : async operations are
1488           now implemented as virtual in base class. Remove NIEs in http.
1489
1490 2009-06-10  Atsushi Enomoto  <atsushi@ximian.com>
1491
1492         * HttpChannelListener.cs : hack async implementation.
1493
1494 2009-06-08  Atsushi Enomoto  <atsushi@ximian.com>
1495
1496         * HttpListenerManager.cs : oops, extra line removal.
1497
1498 2009-06-08  Atsushi Enomoto  <atsushi@ximian.com>
1499
1500         * HttpChannelManager.cs, HttpListenerManager.cs : rename file too.
1501
1502 2009-06-08  Atsushi Enomoto  <atsushi@ximian.com>
1503
1504         * HttpChannelManager.cs, HttpChannelListener.cs: renaming, as
1505           "ChannelManager" is confusing (there is ChannelManagerBase).
1506
1507 2009-06-08  Atsushi Enomoto  <atsushi@ximian.com>
1508
1509         * HttpChannelManager.cs, HttpTransportBindingElement.cs,
1510           HttpReplyChannel.cs, AspNetReplyChannel.cs, HttpChannelListener.cs:
1511           they should be split into separate listener->reply channel lines
1512           (remove "if (HostingEnvironment.IsAspNet)".)
1513
1514 2009-06-08  Atsushi Enomoto  <atsushi@ximian.com>
1515
1516         * CommunicationObject.cs : OnClosed() requires call to base method.
1517           Close() could rather abort the channel, and Abort() does not
1518           always invke OnAbort().
1519         * ChannelBase.cs : add call to base as above.
1520
1521 2009-06-05  Sebastien Pouliot  <sebastien@ximian.com>
1522
1523         * ClientAccessPolicy.cs: Removed
1524         * CrossDomainAccessManager.cs: Removed
1525         * CrossDomainPolicy.cs: Removed
1526         * HttpRequestChannel.cs: Remove call to CrossDomainAccessManager 
1527         since this is now done inside the BeginGetResponse call (outside
1528         this assembly) for Moonlight (NET_2_1)
1529
1530 2009-06-04  Alan McGovern  <amcgovern@novell.com>
1531
1532         * HttpRequestChannel.cs : Rewrite ProcessRequest to use the async APIs
1533         instead of the sync apis. Prevents a possible deadlock condition in
1534         moonlight. 
1535
1536 2009-06-03  Atsushi Enomoto  <atsushi@ximian.com>
1537
1538         * HttpRequestChannel.cs : that SL2/ML2 does not seem to allow null
1539           callbacks, so add hacky ones.
1540
1541 2009-06-01  Atsushi Enomoto  <atsushi@ximian.com>
1542
1543         * TcpDuplexSessionChannel.cs : WaitForMessage() should not return
1544           true when socket input is not available.
1545
1546 2009-05-29  Atsushi Enomoto  <atsushi@ximian.com>
1547
1548         * TcpDuplexSessionChannel.cs : Moved tcp listener accept to OnOpen().
1549           I cannot precisely identify when EndRecord should be consumed,
1550           so allow it at either at the end of ReadSizedMessage() or on
1551           consuming preamble (it's likely handling EndRecord of previous
1552           message though).
1553
1554           Now duplex IPeerResolverContract communication works between
1555           either of .NET/Mono client and .NET/Mono server.
1556
1557 2009-05-29  Atsushi Enomoto  <atsushi@ximian.com>
1558
1559         * TcpDuplexSessionChannel.cs : looks like I have added some bogus
1560           code. Handle preamble ack on ReadSizedMessage() only at server.
1561           Consume EndRecord from server, at client side. Though it is likely
1562           changed as it's blocking when mono is at server side.
1563
1564 2009-05-29  Atsushi Enomoto  <atsushi@ximian.com>
1565
1566         * TcpDuplexSessionChannel.cs : .NET seems to be based on somewhat
1567           different protocol than existing code with related to preamble ack.
1568           So changed it to work fine with .NET client (finally).
1569
1570 2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>
1571
1572         * MessageBufferImpl.cs : do not output Action twice.
1573
1574 2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>
1575
1576         * MessageBufferImpl.cs : it did not copy headers.
1577         * Message.cs : remove 2_1 conditional implementation for buffered
1578           copy and hence remove bogus code.
1579
1580 2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>
1581
1582         * MessageProperties.cs : copy argument is wrong.
1583
1584 2009-05-27  Atsushi Enomoto  <atsushi@ximian.com>
1585
1586         * PeerCustomResolverBindingElement.cs : some argument check.
1587
1588 2009-05-27  Atsushi Enomoto  <atsushi@ximian.com>
1589
1590         * BinaryMessageEncoder.cs : the serializer somehow leaves binary
1591           xml open, so close the writer as well as open elements.
1592         * TcpDuplexSessionChannel.cs : clear write buffer on each operation.
1593           Do not output EndRecord and SizedMessage at a time.
1594
1595 2009-05-26  Atsushi Enomoto  <atsushi@ximian.com>
1596
1597         * TcpDuplexSessionChannel.cs : there was a miscalculation on the
1598           length of the SizedMessage in the output.
1599
1600 2009-05-26  Atsushi Enomoto  <atsushi@ximian.com>
1601
1602         * CommunicationObject.cs : use sane default timeout.
1603         * PeerCustomResolverBindingElement.cs : check timeout arg sanity.
1604         * TcpDuplexSessionChannel.cs : ditto.
1605
1606 2009-05-26  Atsushi Enomoto  <atsushi@ximian.com>
1607
1608         * TcpDuplexSessionChannel.cs : It seems that buffered stream channel
1609           only accepts buffered messages, so do as such for write buffers.
1610           Add RelatesTo header.
1611
1612 2009-05-26  Atsushi Enomoto  <atsushi@ximian.com>
1613
1614         * DuplexSessionChannelBase.cs, DuplexChannelBase.cs:
1615           rename from former to latter.
1616
1617 2009-05-25  Atsushi Enomoto  <atsushi@ximian.com>
1618
1619         * TcpDuplexSessionChannel.cs : reader does not always return full
1620           buffer (depending on the stream).
1621
1622 2009-05-25  Atsushi Enomoto  <atsushi@ximian.com>
1623
1624         * PeerDuplexChannel.cs, PeerOutputChannel.cs : use new PeerNode.ctor.
1625
1626 2009-05-25  Atsushi Enomoto  <atsushi@ximian.com>
1627
1628         * PeerCustomResolverBindingElement.cs : (Resolve) returned addresses
1629           could be null.
1630
1631 2009-05-22  Atsushi Enomoto  <atsushi@ximian.com>
1632
1633         * ChannelManagerBase.cs : there was annoying non-2.1 stuff.
1634
1635 2009-05-22  Atsushi Enomoto  <atsushi@ximian.com>
1636
1637         * TcpChannelListener.cs, TcpChannelFactory.cs : get reader quotas.
1638
1639 2009-05-22  Atsushi Enomoto  <atsushi@ximian.com>
1640
1641         * ChannelManagerBase.cs : fix wrong session channel detection.
1642
1643 2009-05-22  Atsushi Enomoto  <atsushi@ximian.com>
1644
1645         * BinaryMessageEncoderFactory.cs, BinaryMessageEncoder.cs
1646           This encoder factory implements CreateSessionEncoder() and binary
1647           encoder does support session transmit, in different media type.
1648         * ChannelManagerBase.cs : added utility method to create appropriate
1649           encoder.
1650         * HttpChannelFactory.cs, HttpChannelListener.cs,
1651           MsmqChannelFactory.cs, MsmqChannelListener.cs,
1652           PeerChannelFactory.cs, PeerChannelListener.cs,
1653           TcpChannelFactory.cs, TcpChannelListener.cs : use above.
1654
1655 2009-05-22  Atsushi Enomoto  <atsushi@ximian.com>
1656
1657         * TcpDuplexSessionChannel.cs : add ReplyTo header.
1658
1659 2009-05-21  Atsushi Enomoto  <atsushi@ximian.com>
1660
1661         * DuplexSessionBase.cs : new file, for session implementation.
1662         * TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
1663           DuplexSessionChannelBase.cs : changed sync/async implementation
1664           pattern. Now async methods call sync methods using delegates.
1665
1666 2009-05-21  Atsushi Enomoto  <atsushi@ximian.com>
1667
1668         * InputChannelBase.cs, TransportBindingElement.cs, RequestContext.cs:
1669           a few minor API fixes.
1670
1671 2009-05-21  Atsushi Enomoto  <atsushi@ximian.com>
1672
1673         * MessageEncoderFactory.cs : implement CreateSessionEncoder().
1674
1675 2009-05-19  Atsushi Enomoto  <atsushi@ximian.com>
1676
1677         * TcpDuplexSessionChannel.cs : add To header.
1678
1679 2009-05-19  Atsushi Enomoto  <atsushi@ximian.com>
1680
1681         * MessageFault.cs : fix several SOAP12 fault deserialization in xml
1682           parsing.
1683
1684 2009-05-18  Atsushi Enomoto  <atsushi@ximian.com>
1685
1686         * FaultConverter.cs : avoid NRE for null IncomingMessageHeaders.
1687
1688 2009-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1689
1690         * MessageFault.cs : Reason is mandatory. raise XmlException, and
1691           CommunicationException in each CreateFault().
1692
1693 2009-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1694
1695         * TcpDuplexSessionChannel.cs : on listener side, get TcpClient at
1696           Open(). Some (but not all yet) continuous communication works now.
1697           Use ProtocolException. Remove dummy binary session string.
1698
1699 2009-05-14  Atsushi Enomoto  <atsushi@ximian.com>
1700
1701         * TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Moved
1702           sending/receiving SizedMessageRecord parts to manager class.
1703           Handle writer session, though it is likely broken at dictionary
1704           writer part (no string is written so far).
1705         * BinaryMessageEncoder.cs : add writer session and rename reader
1706           session.
1707
1708 2009-05-14  Atsushi Enomoto  <atsushi@ximian.com>
1709
1710         * TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Via uri
1711           is mandatory in initiator preamble packet. Handle Fault reply in
1712           initiator preamble.
1713
1714 2009-05-14  Atsushi Enomoto  <atsushi@ximian.com>
1715
1716         * TcpDuplexSessionChannel.cs : ongoing refactoring to collect [MC-NMF]
1717           based communication under TcpBinaryFrameManager class.
1718
1719 2009-05-13  Jb Evain  <jbevain@novell.com>
1720
1721         * MessageHeader.cs: use a SL friendly way of creating an XmlReader
1722         from a StringReader.
1723
1724 2009-05-13  Atsushi Enomoto  <atsushi@ximian.com>
1725
1726         * MessageImpl.cs, MessageHeader.cs : eliminate xlinq in 2.1, and
1727           actually eliminate DOM-based implementation too in 2.0.
1728
1729 2009-04-28  Atsushi Enomoto  <atsushi@ximian.com>
1730
1731         * TcpDuplexSessionChannel.cs : implement in-band dictionary support
1732           in [MC-NMF] and [MC-NBFSE], used in duplex channels. Added some
1733           comments for magic numbers based on [MC-NMF].
1734
1735 2009-04-28  Atsushi Enomoto  <atsushi@ximian.com>
1736
1737         * BinaryMessageEncoder.cs : implement part of in-band dictionary
1738           support for [MC-NBFSE] record in [MC-NMF], in this class.
1739
1740 2009-04-28  Atsushi Enomoto  <atsushi@ximian.com>
1741
1742         * BinaryMessageEncodingBindingElement.cs : clear extra public members.
1743
1744 2009-04-27  Atsushi Enomoto  <atsushi@ximian.com>
1745
1746         * TcpDuplexSessionChannel.cs : implemented some channel methods.
1747
1748 2009-04-27  Atsushi Enomoto  <atsushi@ximian.com>
1749
1750         * BinaryMessageEncoder.cs : use XmlDictionary specified as [MC-NBFS].
1751
1752 2009-04-27  Atsushi Enomoto  <atsushi@ximian.com>
1753
1754         * ChannelManagerBase.cs : implement Open/CloseTimeout correctly.
1755
1756 2009-04-23  Atsushi Enomoto  <atsushi@ximian.com>
1757
1758         * BinaryMessageEncoder.cs : use quotas in binding element.
1759           Implement WriteMessage().
1760
1761 2009-04-22  Atsushi Enomoto  <atsushi@ximian.com>
1762
1763         * PeerCustomResolverBindingElement.cs : do initialize field.
1764
1765 2009-04-21  Atsushi Enomoto  <atsushi@ximian.com>
1766
1767         * PeerCustomResolverBindingElement.cs :
1768           implement full custom resolver.
1769
1770 2009-04-21  Atsushi Enomoto  <atsushi@ximian.com>
1771
1772         * PeerDuplexChannel.cs, PeerChannelListener.cs,
1773           PeerOutputChannel.cs, PeerCustomResolverBindingElement.cs,
1774           PeerChannelFactory.cs : ongoing p2p channel implementation.
1775
1776 2009-04-21  Atsushi Enomoto  <atsushi@ximian.com>
1777
1778         * PnrpPeerResolverBindingElement.cs : sync with PeerResolver changes.
1779
1780 2009-04-21  Atsushi Enomoto  <atsushi@ximian.com>
1781
1782         * BinaryMessageEncodingBindingElement.cs, ChannelBase.cs,
1783           ChannelFactoryBase.cs, WindowsStreamSecurityBindingElement.cs :
1784           implement GetProperty<T>(). Return documented objects or null.
1785
1786 2009-04-20  Atsushi Enomoto  <atsushi@ximian.com>
1787
1788         * PeerChannelFactory.cs, PeerChannelListener.cs,
1789           PeerCustomResolverBindingElement.cs, PeerDuplexChannel.cs
1790           PeerInputChannel.cs, PeerOutputChannel.cs :
1791           new; ongoing peer transport implementation.
1792         * DuplexSessionChannelBase.cs, InputChannelBase.cs
1793           MsmqOutputChannel.cs, OutputChannelBase.cs,
1794           PeerResolverBindingElement.cs, PeerTransportBindingElement.cs,
1795           PnrpPeerResolverBindingElement.cs, TcpDuplexSessionChannel.cs :
1796           several internal changes (either required or for simplification)
1797           for ongoing peer transport implementation.
1798
1799 2009-04-08  Atsushi Enomoto  <atsushi@ximian.com>
1800
1801         * PeerTransportBindingElement.cs : ListenIPAddress is IPAddress.
1802
1803 2009-04-07  Atsushi Enomoto  <atsushi@ximian.com>
1804
1805         * TcpTransportBindingElement.cs : check build-ability before
1806           actually building channels.
1807         * ConnectionOrientedTransportBindingElement.cs : fixed build-ability
1808           conditions according to MSDN.
1809
1810 2009-03-05  Atsushi Enomoto  <atsushi@ximian.com>
1811
1812         * MessageHeader.cs, MessageHeaders.cs, MessageImpl.cs :
1813           handle headers in SL2. Slightly changed 3.0 code too.
1814
1815 2009-03-04  Atsushi Enomoto  <atsushi@ximian.com>
1816
1817         * HttpRequestChannel.cs : use cross domain access manager.
1818
1819 2009-02-27  Atsushi Enomoto  <atsushi@ximian.com>
1820
1821         * Message.cs : (in CreateBufferedCopy) do not pass the entire
1822           message as BodyWriter.
1823           (in GetReaderAtBodyContents) just write body contents.
1824         * MessageImpl.cs : do not try to read body at ctor (fixed tons
1825           of test failures).
1826           Add some state check in GetReaderAtBodyContents().
1827         * XmlReaderBodyWriter.cs : avoid possible extra xmldecl onto output.
1828
1829 2009-02-18  Atsushi Enomoto  <atsushi@ximian.com>
1830
1831         * Message.cs : do not forget to flush.
1832         * HttpRequestChannel.cs : give more exact error info.
1833
1834 2009-02-18  Atsushi Enomoto  <atsushi@ximian.com>
1835
1836         * Message.cs, MessageBufferImpl.cs, XmlReaderBodyWriter.cs :
1837           make buffered copy in ML2 really buffered.
1838
1839 2009-02-12  Atsushi Enomoto  <atsushi@ximian.com>
1840
1841         * Message.cs : if there is no header item to write, do not write
1842           SOAP header element.
1843
1844 2009-01-22  Alan McGovern  <amcgovern@novell.com>
1845
1846         * MessageHeaders.cs : List<T>.RemoveAll(Predicate<T>) doesn't exist in Silverlight.
1847         Rewrite to avoid usage of it.
1848
1849 2009-01-14  Atsushi Enomoto  <atsushi@ximian.com>
1850
1851         * ChannelParameterCollection.cs : implement, rather than NIE.
1852
1853 2008-05-22  Noam Lampert <noaml@mainsoft.com>
1854
1855         * MessageFault.cs: Correctly serialize ExceptionDetails. Expose SimpleMessageFault to allow
1856           internal users to know the type of the detail. 
1857         
1858 2008-05-20  Noam Lampert <noaml@mainsoft.com>
1859
1860         * Message.c: Use private setter for state private variable to ease debugging.
1861                                  Modify ToString not to change the state, as it is called quite often by VS debugger
1862                                  
1863 2008-04-21  Roei Erez <roeie@mainsoft.com>
1864
1865         * HttpChannleManager: Fix for multithreaded use.
1866         * HttpReplyChannel: Fix crash during sutdown.
1867
1868 2008-04-17  Igor Zelmanovich <igorz@mainsoft.com>
1869
1870         * HttpChannleManager: ensure trailing slash in uri.
1871
1872 2008-04-17  Vladimir Krasnov  <vladimirk@mainsoft.com>
1873
1874         * added: HttpChannleManager,
1875         * HttpChannelListener: added use of HttpChannelManager
1876
1877 2008-04-17  Vladimir Krasnov  <vladimirk@mainsoft.com>
1878
1879         * MessageEncodingBindingElement.cs: fixed ctor
1880
1881 2008-04-17  Vladimir Krasnov  <vladimirk@mainsoft.com>
1882
1883         * XmlReaderBodyWriter.cs: fixed ctor, skip xml declaration
1884
1885 2008-04-17  Vladimir Krasnov  <vladimirk@mainsoft.com>
1886
1887         * HttpReplyChannel.cs: fixed TryReceiveRequest, fix message header To
1888
1889 2008-04-17  Vladimir Krasnov  <vladimirk@mainsoft.com>
1890
1891         * MessageFault.cs: fixed CreateFault11, implemented "detail"
1892
1893 2008-04-17  Noam Lampert <noaml@mainsoft.com>
1894
1895         * HttpReplyChannel.cs: fix API - Fix crash during service shutdown.
1896
1897 2008-04-13  Igor Zelmanovich <igorz@mainsoft.com>
1898
1899         * BindingElementCollection.cs: fix API - .ctor's signature.
1900
1901 2008-04-10  Eyal Alaluf <eyala@mainsoft.com>
1902
1903         * XmlSerializerBodyWriter.cs: Removed.
1904
1905 2008-03-25  Vladimir Krasnov  <vladimirk@mainsoft.com>
1906
1907         * MessageFault.cs: fixed WriteReason, .net XmlWriter compatible
1908
1909 2008-02-20  Atsushi Enomoto  <atsushi@ximian.com>
1910
1911         * DuplexSessionChannelBase.cs : made it non-session (more reusable).
1912         * TcpChannelFactory.cs, TcpChannelListener.cs :
1913           unify factory and listener into TcpChannelInfo for use in
1914           TCP channel implementation. Do not store stream in the listener.
1915           Factory now uses BinaryMessageEncoder.
1916         * TcpDuplexSessionChannel.cs : changes explained above, and now it
1917           holds TcpClient that the listener has accepted.
1918
1919           tcp-transport-binding-element sample now communicates (though
1920           only when both sides are mono: there seems binary mismatch).
1921
1922 2008-02-20  Atsushi Enomoto  <atsushi@ximian.com>
1923
1924         * TcpTransportBindingElement.cs, TcpConnectionPoolSettings.cs :
1925           clone connection pool settings too.
1926         * NamedPipetransportBindingElement.cs,
1927           NamedPipeConnectionPoolSettings.cs : let's clean them up too (not
1928           being likely implemented though).
1929
1930 2008-02-20  Atsushi Enomoto  <atsushi@ximian.com>
1931
1932         * ConnectionOrientedTransportBindingElement.cs, 
1933           TcpTransportBindingElement.cs : some API updates.
1934           Initialize default values.
1935         * TcpConnectionPoolSettings.cs : new file.
1936
1937 2008-02-18  Atsushi Enomoto  <atsushi@ximian.com>
1938
1939         * ServiceHostParser.cs, SvcHttpHandlerFactory.cs, SvcHttpHandler.cs:
1940           added support for "factory" attribute.
1941
1942 2008-02-15  Atsushi Enomoto  <atsushi@ximian.com>
1943
1944         * HttpRequestContent.cs : consider HttpResponseMessageProperty.
1945
1946 2008-02-15  Atsushi Enomoto  <atsushi@ximian.com>
1947
1948         * HttpRequestChannel.cs : pass response ContentType to ReadMessage().
1949
1950 2008-02-15  Atsushi Enomoto  <atsushi@ximian.com>
1951
1952         * HttpRequestChannel.cs : create WebRequest against To message header
1953           item (if exists).
1954           Consider HttpRequestMessageProperty.
1955           Do not output body when suppressed or the method is GET.
1956
1957 2008-02-15  Atsushi Enomoto  <atsushi@ximian.com>
1958
1959         * HttpChannelListener.cs : BindingContext may not have listenUri
1960           at its .ctor() step.
1961
1962 2008-02-08  Atsushi Enomoto  <atsushi@ximian.com>
1963
1964         * BindingContext.cs : RemainingBindingElements is not just a dummy
1965           collection but is actually user-controlled.
1966
1967 2008-02-08  Atsushi Enomoto  <atsushi@ximian.com>
1968
1969         * TcpChannelFactory.cs, TcpChannelListener.cs, 
1970           HttpChannelFactory.cs, HttpChannelListener.cs,
1971           MsmqChannelFactory.cs, MsmqChannelListener.cs,
1972           TextMessageEncodingBindingElement.cs,
1973           BinaryMessageEncodingBindingElement.cs,
1974           MtomMessageEncodingBindingElement.cs :
1975           message encoder should be retrieved only through public API.
1976         * BindingContext.cs : so my old guess was wrong.
1977
1978         See also: http://blogs.msdn.com/drnick/archive/2006/05/10/594134.aspx
1979
1980 2008-02-05  Atsushi Enomoto  <atsushi@ximian.com>
1981
1982         * HttpTransportBindingElement.cs : implemented copy constructor.
1983
1984 2007-08-20  Atsushi Enomoto  <atsushi@ximian.com>
1985
1986         * HttpRequestChannel.cs, HttpReplyChannel.cs : treat SOAPAction HTTP
1987           header when AddressingVersion is None.
1988
1989 2007-08-20  Atsushi Enomoto  <atsushi@ximian.com>
1990
1991         * MessageHeaders.cs : AddressingVersion.None rejects some WSA
1992           property setters.
1993
1994 2007-08-19  Atsushi Enomoto  <atsushi@ximian.com>
1995
1996         * OneWayBindingElementImporter.cs
1997           CompositeDuplexBindingElementImporter.cs : new files.
1998
1999 2007-08-17  Atsushi Enomoto  <atsushi@ximian.com>
2000
2001         * MessageHeaders.cs : due to the DataContractSerializer.ReadObject()
2002           semantic change, its bool parameter must be false, not true.
2003
2004 2007-07-13  Atsushi Enomoto  <atsushi@ximian.com>
2005
2006         * InputChannelBase.cs, MsmqChannelListener.cs, MsmqInputChannel.cs :
2007           new files. Msmq transport listener Implementation.
2008         * MsmqOutputChannel.cs : implemented Send(). Not sure if it works
2009           (wait for System.Messaging impl.)
2010         * HttpReplyChannel.cs : added comment
2011
2012 2007-07-06  Atsushi Enomoto  <atsushi@ximian.com>
2013
2014         * MsmqChannelFactory.cs MsmqOutputChannel.cs OutputChannelBase.cs :
2015           new files. internal stuff for msmq channel.
2016         * BinaryMessageEncoder.cs : added another .ctor().
2017         * MsmqTransportBindingElement.cs :
2018           implemented [Can]BuildChannelFactory().
2019
2020 2007-07-06  Atsushi Enomoto  <atsushi@ximian.com>
2021
2022         * MsmqBindingElementBase.cs MsmqTransportBindingElement.cs :
2023           initialize some fields.
2024
2025 2007-07-05  Atsushi Enomoto  <atsushi@ximian.com>
2026
2027         * MsmqBindingElementBase.cs MsmqMessageProperty.cs
2028           MsmqTransportBindingElement.cs ITransactedBindingElement.cs :
2029           couple of msmq stubs.
2030
2031 2007-04-02  Atsushi Enomoto  <atsushi@ximian.com>
2032
2033         * SecureMessageGenerator.cs : SecurityContextToken support (though
2034           it is still regarded as invalid by WCF).
2035
2036 2007-03-13  Atsushi Enomoto  <atsushi@ximian.com>
2037
2038         * WSSecurityMessageHeader.cs, SecureMessageGenerator.cs :
2039           make header.Contents.Add() more strict.
2040           Use HasAsymmetricKey to determine whether to use asymmetric algorithm
2041           or not.
2042           Added some hack to allow ssl token external mode.
2043           Commented out such lines that always premised asymmtric key.
2044
2045 2007-03-08  Atsushi Enomoto  <atsushi@ximian.com>
2046
2047         * TransactionFlowBindingElement.cs : forgot necessary Clone().
2048
2049 2007-03-08  Atsushi Enomoto  <atsushi@ximian.com>
2050
2051         * MessageSecurityBindingSupport.cs : support check to create
2052           authenticator is now done in both initiator/recipient sides.
2053         * SecurityRequestContext.cs : don't encrypt WS-Trust RSTR.
2054
2055 2007-03-07  Atsushi Enomoto  <atsushi@ximian.com>
2056
2057         * MessageSecurityBindingSupport.cs : for now, comment out the code
2058           that makes authenticator creation optional.
2059         * SecurityRequestContext.cs : don't decrypt message when it is
2060           WS-Trust messages. Also, do not secure SOAP Fault (it is likely
2061           to fail).
2062         * SecurityChannelListener.cs : GetProperty<T>() now returns
2063           MessageSecurityBindingSupport when requested. It is used by
2064           EndpointDispatcher to check if it supports WS-Trust negotiation.
2065         * ChannelListenerBase.cs :
2066           removed extra TODO and field. Implemented GetProperty<T>().
2067         * Message.cs : In CreateMessage() for SOAP Fault, create
2068           SimpleMessage with IsFault = true.
2069
2070 2007-03-07  Atsushi Enomoto  <atsushi@ximian.com>
2071
2072         * SecurityRequestContext.cs : try to reply fault with the inner
2073           channel when an error occurred internally.
2074         * FaultConverter.cs : implemented based on OperationContext (at normal
2075           state it does not seem to create messages, so I implemented it this
2076           way).
2077
2078 2007-03-07  Atsushi Enomoto  <atsushi@ximian.com>
2079
2080         * TransportBindingElement.cs : implemented GetProperty<T>().
2081         * TransactionFlowBindingElement.cs : on building factory or listener,
2082           reject channel types that cannot build.
2083         * SecurityBindingElement.cs : added some TODO comments.
2084         * HttpTransportBindingElement.cs : GetProperty<T>() should rather
2085           delegate to base, not BindingContext.
2086         * SecurityRequestContext.cs : somewhat late decryption.
2087
2088 2007-03-06  Atsushi Enomoto  <atsushi@ximian.com>
2089
2090         * MessageSecurityBindingSupport.cs,
2091           AsymmetricSecurityBindingElement.cs,
2092           SymmetricSecurityBindingElement.cs :
2093           renamed *SecurityBindingElementSupport to *SecurityCapabilities and
2094           implemented ISecurityCapabilities on them. Now those binding
2095           elements support GetProperty<ISecurityCapabilities>().
2096
2097 2007-03-05  Atsushi Enomoto  <atsushi@ximian.com>
2098
2099         * SecurityBindingElement.cs : SetIssuerBindingContextIfRequired()
2100           will work only for predefined parameter types.
2101
2102 2007-03-01  Atsushi Enomoto  <atsushi@ximian.com>
2103
2104         * MessageSecurityBindingSupport.cs :
2105           Set proper MessageDirection to the requirement after creation.
2106           split CreateTokenAuthenticator() as MessageDirection is different.
2107           Removed extra creation of requirement.
2108
2109 2007-03-01  Atsushi Enomoto  <atsushi@ximian.com>
2110
2111         * MessageSecurityBindingSupport.cs : token authenticator is not
2112           always created on channel-opening stage.
2113         * SecurityBindingElement.cs : use SslSecurityTokenParameters for
2114           Sslnego binding factory method.
2115
2116 2007-02-28  Atsushi Enomoto  <atsushi@ximian.com>
2117
2118         * SecureMessageGenerator.cs : inconsistent ReferenceList has caused
2119           signature velification failure.
2120
2121 2007-02-27  Atsushi Enomoto  <atsushi@ximian.com>
2122
2123         * SecureMessageGenerator.cs : encrypt signature confirmations only
2124           when they are required.
2125
2126 2007-02-27  Atsushi Enomoto  <atsushi@ximian.com>
2127
2128         * SecureMessageGenerator.cs : SignatureConfirmation must be encrypted
2129           when [Signature Protection is true i.e. when we use
2130           SignBeforeEncryptAndEncryptSignature.
2131
2132           With this change finally samplesvc.cs/samplecli.cs became
2133           interoperable(!)
2134
2135 2007-02-27  Atsushi Enomoto  <atsushi@ximian.com>
2136
2137         * SecureMessageDecryptor.cs : signature verification was not done
2138           for endorsing supporting tokens.
2139         * SecureMessageGenerator.cs : moved SignatureConfirmation position
2140           in the security header. Don't output empty ReferenceList.
2141
2142 2007-02-27  Atsushi Enomoto  <atsushi@ximian.com>
2143
2144         * SecureMessageGenerator.cs : signingToken was added before being
2145           initialized and thus caused NRE.
2146
2147 2007-02-27  Atsushi Enomoto  <atsushi@ximian.com>
2148
2149         * WSSecurityMessageHeader.cs, SecureMessageDecryptor.cs,
2150           SecureMessageGenerator.cs : use SHA1 instead of HMACSHA1. Now we
2151           don't need workaround for symmetric key restoration.
2152
2153 2007-02-27  Atsushi Enomoto  <atsushi@ximian.com>
2154
2155         * WSSecurityMessageHeader.cs, SecureMessageDecryptor.cs,
2156           SecureMessageGenerator.cs :
2157           Avoid extra reference search from the request's ReferenceList.
2158           create HMACSHA1 always with the key to compute hash (I'm not sure
2159           it is correct; it is rather to adjust all hash consistent.)
2160
2161 2007-02-27  Atsushi Enomoto  <atsushi@ximian.com>
2162
2163         * SecureMessageDecryptor.cs : verify that endorsing supporting tokens
2164           actually endorsed the primary signature.
2165         * SecureMessageGenerator.cs : implemented endorsing of the primary
2166           signature. So, now supporting tokens are fully implemented.
2167
2168 2007-02-27  Atsushi Enomoto  <atsushi@ximian.com>
2169
2170         * MessageSecurityBindingSupport.cs : so, those supporting tokens are
2171           totally signing tokens.
2172         * SecureMessageGenerator.cs : Endorsing tokens should also be
2173           included in the message. They are just not signed.
2174
2175 2007-02-26  Atsushi Enomoto  <atsushi@ximian.com>
2176
2177         * SecureMessageGenerator.cs : support signing and encryption of
2178           supporting tokens. Some required refactory to do it.
2179         * MessageSecurityBindingSupport.cs : added EncryptedData member.
2180
2181 2007-02-26  Atsushi Enomoto  <atsushi@ximian.com>
2182
2183         * SecureMessageDecryptor.cs : fix exception message.
2184         * WSSecurityMessageHeader.cs, WSSignedXml.cs, WSEncryptedXml.cs :
2185           XmlNamespaceManager is not required for GetIdElement().
2186
2187 2007-02-22  Atsushi Enomoto  <atsushi@ximian.com>
2188
2189         * SecureMessageDecryptor.cs, WSSecurityMessageHeader.cs :
2190           moved decryption part from former file to latter file, to reuse
2191           SignedXml instance (though now I doubt how it actually was good)
2192           which in turn required to replace EncryptedData in
2193           WSSecurityMessageHeader with decrypted one.
2194         * WSEncryptedXml.cs : similar to WSSignedXml.cs, to handle wsu:Id.
2195
2196 2007-02-21  Atsushi Enomoto  <atsushi@ximian.com>
2197
2198         * SecureMessageGenerator.cs : when we create DerivedKeyToken, those
2199           EncryptedData should contain KeyInfo as it is not obvious which key
2200           is used there. .net<->mono DerivedKeyToken introp is done.
2201         * SecureMessageDecryptor.cs : check derived key requirement.
2202           Reduce dom-dependent parts.
2203
2204 2007-02-21  Atsushi Enomoto  <atsushi@ximian.com>
2205
2206         * WSSecurityMessageHeader.cs : ReferenceList needs to be bound to
2207           the related DerivedKeyToken (if any).
2208         * SecureMessageGenerator.cs : largely done with DerivedKeyToken
2209           support. Some refactoring to distinguish deried-token-related
2210           variables.
2211         * SecureMessageDecryptor.cs : removed its own support for derived
2212           key tokens. Now it fully works with DerivedKeySecurityToken.
2213
2214 2007-02-21  Atsushi Enomoto  <atsushi@ximian.com>
2215
2216         * WSSecurityMessageHeader.cs, SecureMessageDecryptor.cs,
2217           SecureMessageDecryptor.cs :
2218           Implemented increment token reading in o:Security, as
2219           DerivedKeyToken could reference to existing wrapped key.
2220           Removed WsscDerivedKeyToken and all relevant code.
2221         * SecureMessageGenerator.cs : replaced WsscDerivedKeyToken with
2222           DerivedKeySecurityToken.
2223
2224 2007-02-16  Atsushi Enomoto  <atsushi@ximian.com>
2225
2226         * SecureMessageGenerator.cs : it was setting security tokens into
2227           incorrect SecurityMessageProperty.
2228           Use correct WrappedKeySecurityToken for EncryptedKeySHA1.
2229           Now it uses SecurityRequestContext instead of just primary key.
2230         * SecureMessageDecryptor.cs : removed extra lines. Limit workarounds
2231           to symmetric reply decryption, which is the only trouble case.
2232           Do not create another SignedXml.
2233         * WSSecurityMessageHeader.cs : SignedXml processing changes above.
2234
2235 2007-02-15  Atsushi Enomoto  <atsushi@ximian.com>
2236
2237         * SecureMessageDecryptor.cs : Now it uses union token resolver and
2238           the resolver works with in-progress token reading in o:Security.
2239         * WSSecurityMessageHeader.cs : now it does not read EncryptedKey
2240           as EncryptedKeyIdentifierClause. It is rather a SecurityToken.
2241         * SecureMessageGenerator.cs : cosmetic refactoring.
2242
2243 2007-02-14  Atsushi Enomoto  <atsushi@ximian.com>
2244
2245         * WSSecurityMessageHeader.cs : read EncryptedKeyIdentifierClause
2246           instead of EncryptedKey.
2247
2248 2007-02-13  Atsushi Enomoto  <atsushi@ximian.com>
2249
2250         * MessageSecurityBindingSupport.cs : SigningToken and EncryptionToken
2251           should not be always prepared at channel Open(). It also caused
2252           that extra token requirements.
2253         * SecureMessageGenerator.cs : use correct key clause for encryption.
2254         * SecureMessageDecryptor.cs : reduce extra key acquisition.
2255
2256 2007-02-06  Atsushi Enomoto  <atsushi@ximian.com>
2257
2258         * MessageSecurityBindingSupport.cs : added CreateTokenAuthenticator()
2259           for supporting 'supporting tokens' .
2260         * SecureMessageGenerator.cs : Supporting token creation is done only
2261           at initiator (not sure if it is supposed that, but for now it is).
2262           Removed extraneous CollectSupportingTokens().
2263         * SecureMessageDecryptor.cs : implemented supporting token
2264           authentication (partly). "Signed" supporting tokens are expected
2265           to work fine.
2266
2267 2007-02-06  Atsushi Enomoto  <atsushi@ximian.com>
2268
2269         * SecureMessageGenerator.cs :
2270           make SignBeforeEncryptAndEncryptSignature working.
2271
2272 2007-02-06  Atsushi Enomoto  <atsushi@ximian.com>
2273
2274         * SecureMessageGenerator.cs : EncryptedKeySHA1 needs key hash, not
2275           the key itself. ProtectionToken is WrappedKey.
2276         * SecureMessageDecryptor.cs : now it is internal encrypted key clause,
2277           not EncryptedKeyIdentifierClause which is not for embedded key.
2278         * MessageProperties.cs : Fixed copy direction in CopyProperties().
2279
2280 2007-02-05  Atsushi Enomoto  <atsushi@ximian.com>
2281
2282         * MessageSecurityBindingSupport.cs : added DefaultKeyWrapAlgorithm
2283           to switch asymmetric and symmetric. Not used yet.
2284         * SecurityRequestChannel.cs : now it pass the request security
2285           property to reply receiver so that it could use the primary key
2286           used at request phase.
2287         * SecurityRequestContext.cs : now it pass the context itself to
2288           reply sender so that it could embed related MessageID.
2289         * SecureMessageGenerator.cs : ongoing changes to support symmetric
2290           binding element. Add RelatesTo output and remove MessageID when
2291           replying to the sender. Added some hacks to get symmetric binding
2292           (kind of) working.
2293         * SecureMessageDecryptor.cs : ditto. Handle embedded encryption key
2294           in SecurityTokenReference (it also involved existing encrypted key 
2295           retrieval). In reply receiver, reuse the key that was used at
2296           request phase. It needs significant token resolution refactoring.
2297
2298 2007-02-02  Atsushi Enomoto  <atsushi@ximian.com>
2299
2300         * MessageSecurityBindingSupport.cs : cosmetic refactoring.
2301         * SecureMessageDecryptor.cs : store token and its authentication
2302           policies into the security property, and reuse it on reply.
2303           Some code refactoring; there is at most one o:Security to solve at
2304           one endpoint (depends on Actor). Some attempt to use correct
2305           token parameters (but for now I have only samples that use x509).
2306         * SecureMessageGenerator.cs : For replying message, use initiator's
2307           signing token as the encryption token. Simply reuse security
2308           property from the input message.
2309
2310           I have some nasty workaround at decryptor for initiator that could
2311           not retrieve decryption key.
2312
2313 2007-02-02  Atsushi Enomoto  <atsushi@ximian.com>
2314
2315         * SecureMessageGenerator.cs, SecurityChannelListener.cs,
2316           SecurityRequestContext.cs, MessageSecurityBindingSupport.cs:
2317           several refactoring on token acquisition. Large part of
2318           MessageSecurityBindingSupport code is unified.
2319
2320 2007-02-02  Atsushi Enomoto  <atsushi@ximian.com>
2321
2322         * MessageProperties.cs : Security property should be one of the items.
2323           Actually many other properties should be similar as well.
2324         * MessageImpl.cs, MessageBufferImpl.cs, Message.cs :
2325           when copying a message, copy properties as well.
2326         * SecurityRequestContext.cs : on replying, pass input 
2327           SecurityMessageProperty to the security generator.
2328         * SecureMessageGenerator.cs : both of above, for SignatureConfirmation
2329           support.
2330         * WSSecurityMessageHeader.cs : fixed lazy .ctor() that did nothing.
2331
2332 2007-02-01  Atsushi Enomoto  <atsushi@ximian.com>
2333
2334         * WSSignedXml.cs:
2335           MessageHeader.cs, Message.cs, WSSecurityMessageHeader.cs,
2336           SecureMessageDecryptor.cs, SecureMessageGenerator.cs:
2337           use new WSSignedXml instead of SignedXml, and remove coexisting
2338           Id and wsu:Id. Now we can live only with wsu:Id and therefore
2339           - our reply messages could be consumed by .NET, and
2340           - .NET signature could be verified.
2341
2342 2007-02-01  Atsushi Enomoto  <atsushi@ximian.com>
2343
2344         * SecureMessageDecryptor.cs : The signing key must be passed as
2345           CheckSignature() argument, not SigningKey.
2346
2347 2007-01-31  Atsushi Enomoto  <atsushi@ximian.com>
2348
2349         * MessageImpl.cs : don't read attribute after ReadStartElement().
2350
2351 2007-01-31  Atsushi Enomoto  <atsushi@ximian.com>
2352
2353         * MessageSecurityBindingSupport.cs : some Release() refactoring.
2354         * SecureMessageGenerator.cs : use correct signing key clause for
2355           SecurityTokenReferenceKeyInfo to be serialized.
2356         * SecureMessageDecryptor.cs : now it can try to parse signature.
2357
2358 2007-01-31  Atsushi Enomoto  <atsushi@ximian.com>
2359
2360         Ongoing changes to support signature confirmation
2361         * SecureMessageGenerator.cs :
2362           Don't output ReplyTo onto reply message.
2363           Write SignatureConfirmation if needed.
2364         * SecureMessageDecryptor.cs :
2365           Some refactoring for header cunsumption. Added commented-out
2366           signature verification part (not working yet, on client side due
2367           to incorrect reply from service and insufficient clause reader).
2368         * WSSecurityMessageHeader.cs :
2369           Added SignatureConfirmation support.
2370           KeyInfoClause for o:SecurityTokenReference should be replaced with
2371           SecurityTokenReferenceKeyInfo.
2372
2373 2007-01-29  Atsushi Enomoto  <atsushi@ximian.com>
2374
2375         * SecureMessageGenerator.cs : support Timestamp signature.
2376           Removed unused code, and extra argument in CreateReference().
2377         * WSSecurityMessageHeader.cs : Timestamp also needs Id for SignedXml.
2378
2379 2007-01-29  Atsushi Enomoto  <atsushi@ximian.com>
2380
2381         * SecureMessageGenerator.cs :
2382           Several fixes to make asymmetric binding working:
2383           - Differentiate signing and encryption token in several areas.
2384           - Fixed signing keyinfo.
2385           Use SenderIdPrefix.
2386           Added initial SecurityMessageProperty handling, not sure if it is
2387           appropriate here though.
2388         * HttpRequestChannel.cs : (some debugging lines)
2389
2390 2007-01-26  Atsushi Enomoto  <atsushi@ximian.com>
2391
2392         Woohoo! Here is a very basic WS-Security compliant message which could
2393         be allowed by Indigo.
2394         * MessageHeader.cs : added Id support for writing.
2395         * Message.cs : added internal BodyId for signature reference.
2396         * MessageImpl.cs : write Body Id if required.
2397         * SecureMessageGenerator.cs : Before signing, the target elements must
2398           be given wsu:Id. Since I still use System.Security.dll, I need some
2399           trick for signing (I give both Id and wsu:Id, former to sign and
2400           latter to be consumed). Maybe I will have to replace xmldsig/xmlenc
2401           implementation later. Now singning mechanism works except for
2402           wsu:Timestamp (which is kind of mandatory).
2403
2404         I can's still consume replies from Indigo but it's a big progress :)
2405
2406 2007-01-26  Atsushi Enomoto  <atsushi@ximian.com>
2407
2408         * MessageHeaderInfo.cs : added internal Id.
2409         * MessageHeader.cs : read and write wsu:Id.
2410         * Message.cs : output wsu namespace if Id exists in any header.
2411         * HttpReplyChannel.cs : (some debugging lines.)
2412         * SecureMessageDecryptor.cs : (remove debugging lines.)
2413         * MessageImpl.cs : removed obsolete code.
2414         * WSSecurityMessageHeader.cs : output "o" prefix.
2415         * SecureMessageGenerator.cs : replaced XmlElement-based header
2416           signing with MessageHeader-based signing, to support Id correctly.
2417
2418 2007-01-15  Atsushi Enomoto  <atsushi@ximian.com>
2419
2420         * SecureMessageGenerator.cs : some more refactoring and code comments.
2421         * MessageSecurityUtility.cs : made decryptor into an instance class,
2422           like I've done for SecureMessageGenerator.
2423         * SecurityRequestContext.cs, SecurityRequestChannel.cs :
2424           dependent changes for above.
2425
2426 2007-01-12  Atsushi Enomoto  <atsushi@ximian.com>
2427
2428         * SecureMessageGenerator.cs : fixed derived keysize. derived key was
2429           causing NRE due to the lack of token reference.
2430           No need to pass doc to SignedXml.ctor() anymore.
2431           Moved ReferenceList before the signature(s).
2432
2433 2007-01-12  Atsushi Enomoto  <atsushi@ximian.com>
2434
2435         * SecureMessageGenerator.cs : add wsu:Timestamp to signing target.
2436           Moved signing key generation code to non-HMACSHA1 signing part.
2437           Don't try to sign wss:Security.
2438           Pass document itself to SignedXml.ctor().
2439           Use temporary DataObjects to avoid adding Ids (not sure what is the
2440           expected processing yet).
2441         * WSSecurityMessageHeader.cs : to support timestamp signing, add
2442           WriteTo() method in WsuTimestamp.
2443
2444 2007-01-12  Atsushi Enomoto  <atsushi@ximian.com>
2445
2446         * SecureMessageGenerator.cs : wrong key was used for signing.
2447           Omit KeyInfo for now - it seems that .net (sometimes?) omits it.
2448
2449 2007-01-11  Atsushi Enomoto  <atsushi@ximian.com>
2450
2451         * SecureMessageGenerator.cs :
2452           Now ID generation process does not modify input message.
2453           Moved derived key generation part into (virtual) signing loop.
2454           MessagePartSpecification support for signing is done.
2455
2456 2007-01-11  Atsushi Enomoto  <atsushi@ximian.com>
2457
2458         * SecureMessageGenerator.cs : some reordering to handle signing and
2459           encryption with supporting tokens. Fixed XPath query bug for
2460           soap header contents (we want s:Header/*, not s:Header).
2461
2462 2007-01-11  Atsushi Enomoto  <atsushi@ximian.com>
2463
2464         * MessageSecurityBindingSupport.cs : more refactoring.
2465           Made it abstract and added Initiator- and Recipient- classes.
2466           Several members were moved to those derived types.
2467         * AsymmetricSecurityBindingElement.cs, 
2468           SymmetricSecurityBindingElement.cs
2469           SecurityChannelFactory.cs, SecurityChannelListener.cs,
2470           SecurityRequestChannel.cs, SecurityOutputChannel.cs,
2471           SecurityRequestContext.cs, SecureMessageGenerator.cs :
2472           All dependent changes by above. Removed ISecurityChannelSource
2473           which became useless.
2474
2475 2007-01-11  Atsushi Enomoto  <atsushi@ximian.com>
2476
2477         * SecureMessageGenerator.cs : encryption parts should exist too.
2478         * AsymmetricSecurityBindingElement.cs
2479           SymmetricSecurityBindingElement.cs,
2480           MessageSecurityBindingSupport.cs : some refactoring.
2481           Split MessageSecurityBindingSupport into security binding element
2482           specific parts and made MessageSecurityBindingSupport concrete.
2483           It is likely split again, next time based on initiator/recipient.
2484
2485 2007-01-11  Atsushi Enomoto  <atsushi@ximian.com>
2486
2487         * MessageSecurityUtility.cs, SecureMessageGenerator.cs :
2488           split encryptor part in the former file into latter file, and
2489           make it nonstatic.
2490         * SecurityRequestChannel.cs, SecurityOutputChannel.cs,
2491           SecurityRequestContext.cs : apply the change above.
2492
2493 2007-01-11  Atsushi Enomoto  <atsushi@ximian.com>
2494
2495         * MessageSecurityBindingSupport.cs :
2496           Fixed incorrect TrgGetValue() use.
2497           Added CollectRecipientSupportingTokens().
2498
2499 2007-01-11  Atsushi Enomoto  <atsushi@ximian.com>
2500
2501         * MessageSecurityUtility.cs: acctually ReferenceList was inside
2502           EncryptedKey. So, when a key itself is used to encrypt data,
2503           ReferenceList is contained by itself.
2504         * MessageSecurityBindingSupport.cs :
2505           added CollectInitiatorSupportingTokens().
2506
2507 2007-01-10  Atsushi Enomoto  <atsushi@ximian.com>
2508
2509         * MessageSecurityUtility.cs: it should support ReferenceList-less
2510           messages.
2511
2512 2007-01-10  Atsushi Enomoto  <atsushi@ximian.com>
2513
2514         * WSSecurityMessageHeader.cs : reverted previous unnecessary change.
2515         * MessageSecurityUtility.cs : there already was uuid.
2516
2517 2007-01-09  Atsushi Enomoto  <atsushi@ximian.com>
2518
2519         * MessageSecurityUtility.cs : replaced EncryptedKey with
2520           WrappedKeySecurityToken, which seems to be in actual use in .net.
2521         * WSSecurityMessageHeader.cs : added internal Guid so that it
2522           could be shared between header items.
2523
2524 2006-12-14  Atsushi Enomoto  <atsushi@ximian.com>
2525
2526         * HttpRequestContext.cs, TextMessageEncoder.cs :
2527           some null arg check.
2528
2529 2006-12-08  Atsushi Enomoto  <atsushi@ximian.com>
2530
2531         * MessageSecurityUtility.cs : reducing DOM dependency. Use KeyInfoNode
2532           for SecurityTokenReference resolution.
2533
2534 2006-12-08  Atsushi Enomoto  <atsushi@ximian.com>
2535
2536         * MessageSecurityUtility.cs : fixed EncryptedData decryption to
2537           consider DerivedKeyTokens correctly.
2538           When creating LocalId, don't add '#' here.
2539
2540 2006-12-07  Atsushi Enomoto  <atsushi@ximian.com>
2541
2542         * MessageSecurityUtility.cs :
2543           handle key mapping for each wsse:Security.
2544
2545 2006-12-07  Atsushi Enomoto  <atsushi@ximian.com>
2546
2547         * WSSecurityMessageHeader.cs : use prefix "c" for ws-secureconv.
2548
2549 2006-12-06  Atsushi Enomoto  <atsushi@ximian.com>
2550
2551         * WSSecurityMessageHeader.cs : write top-level ReferenceList in
2552           wsse:Security.
2553         * MessageSecurityUtility.cs :
2554           Now ReferenceList is placed under wsse:Security as WS-Security 1.1 
2555           suggests, and it is used to dereference decryption targets.
2556           Now it premises multiple wsse:Security elements to read.
2557
2558 2006-12-06  Atsushi Enomoto  <atsushi@ximian.com>
2559
2560         * WSSecurityMessageHeader.cs : don't write o:SecurityTokenReference
2561           manually (and actually the namespace URI was wrong).
2562
2563 2006-12-06  Atsushi Enomoto  <atsushi@ximian.com>
2564
2565         * WSSecurityMessageHeader.cs : improved DerivedKeyToken writing
2566           and reading.
2567         * MessageSecurityUtility.cs : DerivedKeyToken creation.
2568
2569 2006-12-06  Atsushi Enomoto  <atsushi@ximian.com>
2570
2571         * SecurityBindingElement.cs,
2572           SymmetricSecurityBindingElement.cs,
2573           AsymmetricSecurityBindingElement.cs :
2574           implemented SetKeyDerivation().
2575
2576 2006-12-06  Atsushi Enomoto  <atsushi@ximian.com>
2577
2578         * MessageSecurityUtility.cs : don't add KeyInfoClause to EncryptedKey
2579           more than once.
2580
2581 2006-12-06  Atsushi Enomoto  <atsushi@ximian.com>
2582
2583         * MessageBufferImpl.cs : XmlReader-based buffer is not possible, so
2584           don't use it.
2585
2586 2006-12-05  Atsushi Enomoto  <atsushi@ximian.com>
2587
2588         * MessageSecurityUtility.cs : u:Timestamp will be encrypted/signed,
2589           thus move it in front of encryption/signing.
2590
2591 2006-12-04  Atsushi Enomoto  <atsushi@ximian.com>
2592
2593         * TransactionFlowBindingElement.cs : OnOpen()/OnClose() should not
2594           check state by themselves (btw it's not really working).
2595         * HttpChannelListener.cs : If the url does not end with '/' add it
2596           so that it could be fed to HttpListener.
2597
2598 2006-12-04  Atsushi Enomoto  <atsushi@ximian.com>
2599
2600         * HttpChannelFactory.cs : check scheme on CreateChannel.
2601         * MessageHeader.cs : finish IsMessageVersionSupported().
2602
2603 2006-12-04  Atsushi Enomoto  <atsushi@ximian.com>
2604
2605         * FaultConverter.cs : new file, not used yet though.
2606
2607 2006-10-21  Atsushi Enomoto  <atsushi@ximian.com>
2608
2609         * SvcHttpHandler.cs : set GET URL to ServiceMetadataBehavior.
2610
2611 2006-10-20  Atsushi Enomoto  <atsushi@ximian.com>
2612
2613         * SvcHttpHandler.cs : once AspNetReplyChannel get working with HTTP
2614           GET as well as HttpReplyChannel, configuration would be ready now.
2615
2616 2006-10-18  Ankit Jain  <jankit@novell.com>
2617
2618         * TextMessageEncoder.cs (MediaType): Use 'application/soap+xml' for
2619         EnvelopeVersion.Soap12 and 'text/xml' for others.
2620         * HttpReplyChannel.cs (TryReceiveRequest): Revert earlier patch for GET
2621         handling.
2622         Strip '?' from the query string.
2623
2624 2006-10-13  Ankit Jain  <jankit@novell.com>
2625
2626         * MessageVersion.cs (None): Set AddressingVersion.None
2627
2628 2006-10-12  Atsushi Enomoto  <atsushi@ximian.com>
2629
2630         * SvcHttpHandler.cs : added config-based endpoint addition code.
2631           Though due to some weird bug in mono-core it does not seem to work,
2632           so commented out for now.
2633         * HttpReplyChannel.cs : handle wsdl query parameter. btw creating
2634           mex request message might just be wrong.
2635           Use expected MessageVersion by the channel.
2636         * AspNetReplyChannel.cs : ditto. Plus, HTTP GET support.
2637
2638 2006-10-12  Atsushi Enomoto  <atsushi@ximian.com>
2639
2640         * MessageSecurityBindingSupport.cs : added DefaultSignatureAlgorithm
2641           which differs depending on whether it is asymmetric or symmetric.
2642         * SecurityRequestChannel.cs, SecurityRequestContext.cs :
2643           simplify SecureMessage() and DecryptMessage() arguments (just
2644           take MessageSecurityBindingSupport instead of several parameters).
2645         * MessageSecurityUtility.cs :
2646           - simplify SecureMessage() and DecryptMessage() arguments (just
2647             take MessageSecurityBindingSupport instead of several parameters).
2648           - Take token inclusion mode into account. Don't include them when
2649             it is not expected. Also, change the token reference style.
2650           - add wsa:MessageID to the headers.
2651           - For hmac-sha1 signing (default for symmetric binding), use
2652             symmetric key created for encryption as well to create HMACSHA1.
2653           - add Id to wsu:Timestamp.
2654           - start to handle SecurityMessageProperty.
2655         * WSSecurityMessageHeader.cs :
2656           Added Id to WsuTimestamp. Also use prefixes for its XML output.
2657           Changed date format.
2658
2659 2006-10-06  Atsushi Enomoto  <atsushi@ximian.com>
2660
2661         * CommunicationObject.cs : reject faulted state on Open()/Close().
2662         * MessageHeaders.cs : removed extra fields.
2663
2664 2006-10-06  Ankit Jain  <jankit@novell.com>
2665
2666         * HttpReplyChannel.cs (TryReceiveRequest): Handle HTTP GET.
2667
2668 2006-10-05  Atsushi Enomoto  <atsushi@ximian.com>
2669
2670         * MessageSecurityUtility.cs, SecurityRequestContext.cs :
2671           added some FIXMEs and additional arg.
2672
2673 2006-10-05  Atsushi Enomoto  <atsushi@ximian.com>
2674
2675         * MessageSecurityUtility.cs : remove duplicate Action header.
2676
2677 2006-10-05  Atsushi Enomoto  <atsushi@ximian.com>
2678
2679         * MessageFault.cs : partly implemented CreateFault(Message, int).
2680         * Message.cs, MessageImpl.cs, MessageBufferImpl.cs :
2681           handle IsFault correctly in each implementation.
2682
2683 2006-10-04  Ankit Jain  <jankit@novell.com>
2684
2685         * HttpRequestChannel.cs (ProcessRequest): Read till the end.
2686
2687 2006-10-04  Ankit Jain  <jankit@novell.com>
2688
2689         * HttpRequestChannel.cs (ProcessRequest): Temporary workaround for a bug
2690         in WebConnectionStream.
2691
2692 2006-10-04  Ankit Jain  <jankit@novell.com>
2693
2694         * MessageHeaders.cs (To): Use GetHeader<string> till
2695         DataContractSerializer gets ISerializable support.
2696         * CustomBinding.cs (.ctor): Get scheme from TransportBindingElement.
2697
2698 2006-10-04  Ankit Jain  <jankit@novell.com>
2699
2700         * ServiceHostParser.cs (Parse):
2701         (Split): Add some error checks.
2702
2703 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
2704
2705         * SslStreamSecurityBindingElement.cs : updated API to Sep. CTP.
2706         * StreamUpgradeAcceptor.cs : Fix AcceptUpgrade().
2707         * SslStreamSecurityUpgradeProvider.cs,
2708           SslStreamSecurityUpgradeAcceptor.cs :
2709           new files for Ssl upgrade provider implementation.
2710         * MessageSecurityUtility.cs :
2711           Create proper C14NTransform. Don't use enveloped signature
2712           transform but sign every significant bits. On securing messages
2713           use ChannelProtectionRequirements.
2714         * SecurityRequestContext.cs : pass ChannelProtectionRequirements to
2715           SecureMessage().
2716         * MessageEncoder.cs : fix API (missing constraint).
2717         * WSSecurityMessageHeader.cs : it is MustUnderstand.
2718         * StreamUpgradeProvider.cs : API fix and implemented .ctor().
2719         * AsymmetricSecurityBindingElement.cs : default protection order is
2720           SignBeforeEncryptAndEncryptSignature.
2721
2722 2006-09-29  Ankit Jain  <jankit@novell.com>
2723
2724         * SvcHttpHandlerFactory.cs (GetTypeFromSvc): Extract and move code to
2725         ServicHostParser and use that here.
2726         (PrivateBinPath): New.
2727         (GetTypeFromBin): New. Load assembly from PrivateBinPath.
2728         (RemovedCallback): Remove and close the SvcHttpHandler when its
2729         corresponding file (.svc) changes.
2730         * SvcHttpHandler.cs (Close): New. Close the ServiceHost.
2731
2732         * ServiceHostParser.cs : New.
2733         * CachingCompiler.cs : New. Code extracted from
2734         System.Web.Compilation.CachingCompiler
2735         * CompilationException.cs : New. From System.Web.Compilation
2736         * HtmlizedException.cs : New. Likewise.
2737
2738 2006-09-29  Atsushi Enomoto  <atsushi@ximian.com>
2739
2740         * MessageSecurityBindingSupport.cs : For client side, it is always
2741           InitiatorServiceModelSecurityTokenRequirement which should be
2742           created. Fixed wrong client encryption key acquisition.
2743
2744 2006-09-29  Atsushi Enomoto  <atsushi@ximian.com>
2745
2746         * SecurityChannelListener.cs, SecurityRequestContext.cs,
2747           MessageSecurityBindingSupport.cs : made similar changes as factories
2748           to listener so that session channels and input channels would work.
2749           Added authenticator creation.
2750
2751 2006-09-29  Atsushi Enomoto  <atsushi@ximian.com>
2752
2753         * Binding.cs : added missing members.
2754
2755 2006-09-28  Atsushi Enomoto  <atsushi@ximian.com>
2756
2757         * SecurityRequestChannel.cs, SecurityOutputChannel.cs,
2758           MessageSecurityUtility.cs, MessageSecurityBindingSupport.cs :
2759           reduce code duplication between request and output channels.
2760           The common parts are now in MessageSecurityBindingSupport.
2761           Now reduced several arguments in SecureMessage() for client.
2762
2763 2006-09-28  Atsushi Enomoto  <atsushi@ximian.com>
2764
2765         * ChannelFactoryBase.cs : implemented ValidateCreateChannel().
2766
2767 2006-09-28  Atsushi Enomoto  <atsushi@ximian.com>
2768
2769         * AsymmetricSecurityBindingElement.cs,
2770           SecurityChannelListener.cs,
2771           SecurityRequestContext.cs,
2772           SymmetricSecurityBindingElement.cs,
2773           SecurityRequestChannel.cs,
2774           SecurityOutputChannel.cs,
2775           SecurityChannelFactory.cs,
2776           MessageSecurityBindingSupport.cs : 1) Refactoring. 
2777           IMessageSecurityBindingSupport now becomes a class and contains
2778           all the members which resided in ISecurityChannelSource.
2779           Now it takes more constructor params.
2780           Made dependent changes on all sources above.
2781
2782           2) Added SecurityTokenAuthenticator creation in
2783           SecurityRequestChannel (SecurityOutputChannel should do the same).
2784
2785 2006-09-27  Atsushi Enomoto  <atsushi@ximian.com>
2786
2787         * SecurityRequestChannel.cs : ongoing improvements on conditional
2788           key creation. Actually there must be some part that creates an
2789           authenticator (WinFX does that).
2790
2791 2006-09-27  Ankit Jain  <jankit@novell.com>
2792
2793         Add suport for handling .svc files.
2794         * SvcHttpHandlerFactory.cs: New.
2795         * SvcHttpHandler.cs: New.
2796
2797         * HttpChannelListener.cs (PopulateChannel): Use AspNetReplyChannel if in
2798         asp.net environment.
2799         (OnOpen): Do nothing in asp.net environment.
2800         (OnClose): Likewise.
2801         * HttpReplyChannel.cs (HttpRequestContext): Move to ..
2802         * HttpRequestContext.cs: .. here.
2803
2804         * AspNetReplyChannel.cs: New.
2805         * AspNetRequestContext.cs: New.
2806
2807 2006-09-26  Atsushi Enomoto  <atsushi@ximian.com>
2808
2809         * MessageSecurityUtility.cs :
2810           Significantly rewritten decryption parts to respect ReferenceList
2811           to decrypt (so no workaround anymore).
2812           Now e:ReferenceList inside o:Security is treated as the referenced
2813           EncryptedType items are encrypted by 1) the derived key which is
2814           immediately in front of it, or 2) the default key (it is according
2815           to WS-SecureConversation section 9.1). Thus removed immediately
2816           previous hack to auto-fill wsu:Id attributes.
2817
2818           On securing a message, generate correct Id and add DataReference
2819           to ReferenceList properly.
2820
2821 2006-09-26  Atsushi Enomoto  <atsushi@ximian.com>
2822
2823         * WSSecurityMessageHeader.cs : handle ReferenceList. It is being
2824           practically used.
2825
2826 2006-09-26  Atsushi Enomoto  <atsushi@ximian.com>
2827
2828         * WSSecurityMessageHeader.cs : handle DerivedKeyToken as a header content.
2829           Actually WSSecurityTokenSerializer should be able to consume it, but after
2830           spending a lot of time I still cannot successfully read it on WinFX.
2831           Skip ReferenceList for now.
2832         * MessageSecurityUtility.cs :
2833           Replaced some string literals with constants.
2834           Added some workaround for DerivedKeyToken retrieval.
2835           WinFX somehow sends incomplete ISO10126 padding which contains
2836           bigger number than the key size and is rejected by EncryptedXml,
2837           so added DecryptLax() which processes such ones in PaddingMode.None
2838           to workaround it (only for cross-connection between mono and winfx).
2839           Added some incomplete implicit wsu:Id processing.
2840           Don't try to replace SignedXml with EncryptedData. It is not added
2841           to the document tree.
2842
2843 2006-09-25  Atsushi Enomoto  <atsushi@ximian.com>
2844
2845         * MessageSecurityUtility.cs : support message signature encryption. Some
2846           more refactoring.
2847
2848 2006-09-22  Atsushi Enomoto  <atsushi@ximian.com>
2849
2850         * SecurityBindingElement.cs : implement Clone(). Remove some MonoTODOs.
2851
2852 2006-09-22  Atsushi Enomoto  <atsushi@ximian.com>
2853
2854         * MessageSecurityUtility.cs : fix warnings.
2855
2856 2006-09-22  Atsushi Enomoto  <atsushi@ximian.com>
2857
2858         * MessageSecurityUtility.cs : actually there would be more than one
2859           EncryptedData. Decrypt all.
2860
2861 2006-09-22  Atsushi Enomoto  <atsushi@ximian.com>
2862
2863         * MessageSecurityUtility.cs : supply correct URIs in SecureMessage().
2864           Use ISO10126 padding mode (it is not required but in manner).
2865
2866 2006-09-21  Atsushi Enomoto  <atsushi@ximian.com>
2867
2868         * MessageSecurityUtility.cs : now that EncryptedXml decryption bug is
2869           fixed, remove 16 bytes workaround (we still need encryption bugfix in
2870           that class to make it work fine with mono client).
2871           Removed buggy lines that reset decryption key to AES.
2872           Modified GetKey() argument to take EncryptedData/EncryptedKey element.
2873         * WSSecurityMessageHeader.cs :
2874           (SecurityTokenReferenceKeyInfo) support LoadXml.
2875
2876 2006-09-20  Atsushi Enomoto  <atsushi@ximian.com>
2877
2878         * TransactionMessageProperty.cs : new file.
2879
2880 2006-09-20  Atsushi Enomoto  <atsushi@ximian.com>
2881
2882         * ChannelPoolSettings.cs, OneWayBindingElement.cs : build fix, as
2883           gmcs happened to report wrong code.
2884
2885 2006-09-19  Atsushi Enomoto  <atsushi@ximian.com>
2886
2887         * SecurityChannelFactory.cs, SecurityChannelListener.cs :
2888           .ctor() now requires ChannelProtectionRequirements which will be
2889           supplied via BindingParameterCollection.
2890         * SymmetricSecurityBindingElement.cs,
2891           AsymmetricSecurityBindingElement.cs : thus add
2892           ChannelProtectionRequirement parameter to factory/listener.
2893         * SecurityRequestChannel.cs : use recipient token requirement to
2894           create an encryption token. Thus differentiate the logic from
2895           signing (initiator) token.
2896
2897 2006-09-19  Atsushi Enomoto  <atsushi@ximian.com>
2898
2899         * SymmetricSecurityChannelFactory.cs, SecurityChannelFactory.cs :
2900           renamed former to latter.
2901         * SymmetricSecurityChannelListener.cs, SecurityChannelListener.cs :
2902           ditto.
2903
2904 2006-09-19  Atsushi Enomoto  <atsushi@ximian.com>
2905
2906         * MessageSecurityBindingSupport.cs : new internal types to commonize
2907           AsymmetricSecurityBindingElement and SymmetricSecurityBindingElement
2908           and thus make internal factory and listener reusable.
2909         * SymmetricSecurityChannelFactory.cs, SecurityRequestContext.cs,
2910           SecurityRequestChannel.cs, SecurityOutputChannel.cs,
2911           SymmetricSecurityChannelListener.cs : rewrote dependent parts on
2912           SymmetricSecurityBindingElement, using the new types above.
2913         * SymmetricSecurityBindingElement.cs :
2914           Use SymmetricMessageSecurityBindingSupport.
2915         * AsymmetricSecurityBindingElement.cs :
2916           thus implemented, using AsymmetricMessageSecurityBindingSupport.
2917
2918 2006-09-19  Atsushi Enomoto  <atsushi@ximian.com>
2919
2920         * ChannelFactoryBase.cs : more RC1 update.
2921
2922 2006-09-19  Atsushi Enomoto  <atsushi@ximian.com>
2923
2924         * MessageEncoder.cs, BinaryMessageEncoder.cs, MtomMessageEncoder.cs,
2925           TextMessageEncoder.cs : updated ReadMessage() API to RC1.
2926         * ChannelListenerBase.cs, ChannelListenerBase_1.cs,
2927           ChannelBase.cs : RC1 API updates.
2928         * MessageImpl.cs : implemented Properties.
2929         * HttpReplyChannel.cs : added HttpRequestMessageProperty support.
2930
2931 2006-09-18  Ankit Jain  <jankit@novell.com>
2932
2933         * MessageHeaders.cs (MessageId):
2934         (RelatesTo): UniqueId is not serializable, serialize it as a string.
2935
2936 2006-09-17  Atsushi Enomoto  <atsushi@ximian.com>
2937
2938         * ChannelParameterCollection.cs : new file.
2939         * LayeredOutputChannel.cs, SecurityOutputChannel.cs :
2940           new files for IOutputChannel implementation.
2941         * OneWayBindingElement.cs : hacky implementation.
2942         * SymmetricSecurityChannelFactory.cs : support IOutputChannel.
2943         * MessageSecurityUtility.cs : now create identifier from the security
2944           token and the token parameters which is added as an argument.
2945         * SecurityRequestContext.cs,
2946           SecurityRequestChannel.cs : SecureMessage() argument changes.
2947           Set MessageSecurityVersion (SecurityTokenVersion) to the token
2948           requirement.
2949
2950 2006-09-17  Atsushi Enomoto  <atsushi@ximian.com>
2951
2952         * HttpRequestChannel.cs : close the HttpWebRequest.
2953
2954 2006-09-17  Atsushi Enomoto  <atsushi@ximian.com>
2955
2956         * HttpRequestChannel.cs,
2957           HttpChannelFactory.cs : implement async request/reply.
2958         * HttpChannelFactory.cs :
2959           verify factory state when creating a channel.
2960
2961 2006-09-17  Atsushi Enomoto  <atsushi@ximian.com>
2962
2963         * MessageEncoder.cs, TextMessageEncoder.cs, MtomMessageEncoder.cs,
2964           BinaryMessageEncoder.cs : added message version mismatch check.
2965
2966 2006-09-15  Atsushi Enomoto  <atsushi@ximian.com>
2967
2968         * SymmetricSecurityChannelListener.cs, SecurityRequestContext.cs :
2969           Making incomplete changes to handle different tokens for encryption
2970           and signature.
2971         * SymmetricSecurityChannelFactory.cs, SecurityRequestChannel.cs :
2972           split channel implementation classes out to the latter file.
2973         * MessageSecurityUtility.cs : seems like there is
2974           TimeStampValidityDuration property, so use it (incomplete; a server
2975           needs another love).
2976
2977 2006-09-12  Atsushi Enomoto  <atsushi@ximian.com>
2978
2979         * MessageSecurityUtility.cs, SymmetricSecurityChannelFactory.cs,
2980           SecurityRequestContext.cs : now that we have key identifier clause
2981           and working ResolveKeyIdentifierClause(), just create keys inside
2982           SecureMessage(). Add KeyInfo to the xmldsig.
2983
2984 2006-09-12  Atsushi Enomoto  <atsushi@ximian.com>
2985
2986         * SymmetricSecurityChannelFactory.cs, SecurityRequestContext.cs :
2987           pass SecurityKeyIdentifierClause to SecureMessage().
2988         * SecurityBindingElement.cs : set X509ReferenceStyle as Thumbprint
2989           for IssuedToken binding element.
2990         * SymmetricSecurityChannelListener.cs : removed hack to just create
2991           X509 security token, and implemented correct token creation.
2992         * WSSecurityMessageHeader.cs : added new KeyInfoClause type that
2993           wraps SecurityTokenReference element.
2994         * MessageSecurityUtility.cs : use the above.
2995
2996 2006-09-08  Atsushi Enomoto  <atsushi@ximian.com>
2997
2998         * MessageSecurityUtility.cs : raise MessageSecurityException when it
2999           could not find a security header.
3000         * SymmetricSecurityChannelFactory.cs : now it also supports
3001           IRequestSessionChannel. Extracted SecurityRequestChannel out from
3002           the factory type.
3003
3004 2006-09-08  Atsushi Enomoto  <atsushi@ximian.com>
3005
3006         * SecurityRequestContext.cs : moved securing message part to
3007           MessageSecurityUtility.cs.
3008         * MessageSecurityUtility.cs : the change above.
3009           use DateTime.Now for timestamp basis. Don't append signature to
3010           the document. Instead it is added to the header. Capture body
3011           content instead of the body itself.
3012         * SymmetricSecurityChannelFactory.cs : decrypt reply message to
3013           be processed by upper layers.
3014
3015 2006-09-08  Atsushi Enomoto  <atsushi@ximian.com>
3016
3017         * MessageSecurityUtility.cs, WSSecurityMessageHeader.cs,
3018           SymmetricSecurityChannelListener.cs,
3019           SymmetricSecurityChannelFactory.cs, SecurityRequestContext.cs :
3020           more refactoring. Request serialization became much more conformant
3021           and add required header items.
3022           Security Token retrieval is needed to send it in the request.
3023           Fixed wrong key encryption.
3024
3025 2006-09-07  Atsushi Enomoto  <atsushi@ximian.com>
3026
3027         * SecurityRequestContext.cs : the workaround was not functional.
3028
3029 2006-09-07  Atsushi Enomoto  <atsushi@ximian.com>
3030
3031         * SecurityRequestContext.cs : some more refactoring. Use EncryptedXml
3032           API, especially ReplaceData(), instead of native crypto stuff.
3033         * WSSecurityMessageHeader.cs : handle dsig:Signature as well (for
3034           MessageProtectionOrder.SignBeforeEncrypt).
3035
3036 2006-09-07  Atsushi Enomoto  <atsushi@ximian.com>
3037
3038         * SecurityRequestContext.cs : label should be combined of both
3039           the client's and the server's.
3040
3041 2006-09-06  Atsushi Enomoto  <atsushi@ximian.com>
3042
3043         * SecurityRequestContext.cs : enable key derivation (though for now
3044           GenerateDerivedKey() is unimplemented). Create meaningful,
3045           decrypted request message to be consumed by the upper layer.
3046
3047 2006-09-06  Atsushi Enomoto  <atsushi@ximian.com>
3048
3049         * SecurityRequestContext.cs : implement Close() and Reply().
3050           ongoing implementation of Reply(TimeSpan).
3051         * MessageSecurityUtility.cs : new file to collect utility methods.
3052         * SymmetricSecurityChannelFactory.cs : moved securing message code
3053           to the above file.
3054         * SymmetricSecurityChannelListener.cs : tiny renaming.
3055
3056 2006-09-06  Atsushi Enomoto  <atsushi@ximian.com>
3057
3058         * SecurityRequestContext.cs : security header is also stored.
3059           removed NotImpl.
3060         * WSSecurityMessageHeader.cs : read EncryptedKey and EncryptedData
3061           as well.
3062
3063 2006-09-06  Atsushi Enomoto  <atsushi@ximian.com>
3064
3065         * SymmetricSecurityChannelFactory.cs : tiny progress on securing
3066           message.
3067
3068 2006-09-05  Atsushi Enomoto  <atsushi@ximian.com>
3069
3070         * SymmetricSecurityChannelFactory.cs : specify KeyUsage.Exchange
3071           so that it retrieves the security key in that manner.
3072
3073 2006-09-05  Atsushi Enomoto  <atsushi@ximian.com>
3074
3075         * Binding.cs : MessageVersion is null when there is no
3076           MessageEncodingBindingElement.
3077         * Message.cs : null arg check.
3078
3079 2006-09-05  Atsushi Enomoto  <atsushi@ximian.com>
3080
3081         * ChannelPoolSettings.cs, OneWayBindingElement.cs : new files.
3082
3083 2006-09-04  Atsushi Enomoto  <atsushi@ximian.com>
3084
3085         * SymmetricSecurityChannelListener.cs, SecurityRequestContext.cs, 
3086           LayeredReplyChannel.cs, LayeredCommunicationObject.cs,
3087           LayeredRequestChannel.cs : some refactoring.
3088         * SymmetricSecurityChannelFactory.cs :
3089           ongoing secure message creation implementation.
3090
3091 2006-09-01  Atsushi Enomoto  <atsushi@ximian.com>
3092
3093         * SymmetricSecurityBindingElement.cs :
3094           pass specific ServiceCredentialsSecurityTokenManager type to
3095           SymmetricSecurityChannelListener as it needs ServiceCertificate.
3096         * SymmetricSecurityChannelListener.cs :
3097           get service certificate. It's a temporary hack.
3098           Move RequestContext code to below.
3099         * SecurityRequestContext.cs : new file.
3100         * WSSecurityMessageHeader.cs : implementing Read(), but to finish
3101           it I have to finish decryption of the incoming message.
3102
3103 2006-08-31  Atsushi Enomoto  <atsushi@ximian.com>
3104
3105         * MessageImpl.cs : don't write attributes on the first body content
3106           element *on soap Body element*.
3107         * MessageBufferImpl.cs : don't throw ArgumentNullException.
3108           ObjectDisposedException is appropriate.
3109         * MessageHeader.cs : (RawMessageHeader) don't write element itself
3110           in OnWriteHeader*Contents*().
3111
3112 2006-08-31  Atsushi Enomoto  <atsushi@ximian.com>
3113
3114         * WSSecurityMessageHeader.cs : new file.
3115         * SymmetricSecurityChannelFactory.cs :
3116           moved WSSecurityHeader and related types to the above.
3117         * SymmetricSecurityChannelListener.cs :
3118           reject SOAP-env-less message.
3119
3120 2006-08-31  Atsushi Enomoto  <atsushi@ximian.com>
3121
3122         * SecurityChannelListener.cs, SymmetricSecurityChannelListener.cs :
3123           renamed former to latter.
3124         * SymmetricSecurityChannelFactory.cs :
3125           create requirements every time. It is also likely that I need
3126           another requirement instance to get service credentials here.
3127
3128 2006-08-30  Atsushi Enomoto  <atsushi@ximian.com>
3129
3130         * SymmetricSecurityBindingElement.cs : make BuildChannelListener()
3131           similar to BuildChannelFactory() (set credentials, issuer binding
3132           context etc.).
3133         * SecurityChannelListener.cs :
3134           more ongoing security support implementation.
3135         * SymmetricSecurityChannelFactory.cs :
3136           moved GetSecurityKey() to SymmetricSecurityRequestChannel.
3137
3138 2006-08-29  Atsushi Enomoto  <atsushi@ximian.com>
3139
3140         * SecurityChannelListener.cs, SymmetricSecurityBindingElement.cs :
3141           Renamed SecurityChannelListener to SymmetricSecurityChannelListener.
3142           Implementation is underway.
3143         * LayeredReplyChannel.cs :
3144           like LayeredRequestChannel, use ChannelListenerBase to provide
3145           default timeouts.
3146
3147 2006-08-29  Atsushi Enomoto  <atsushi@ximian.com>
3148
3149         * MessageHeader.cs : added another implementation type that uses
3150           XmlElement, for buffering purpose.
3151         * MessageImpl.cs : Header item types are user-driven by
3152           MessageHeader.GetHeader<T>(int), so at storing phase just store
3153           nodes as XmlElement.
3154         * MessageHeaders.cs : avoid dumping XmlNode to string to create
3155           another XmlReader.
3156
3157 2006-08-28  Atsushi Enomoto  <atsushi@ximian.com>
3158
3159         * SymmetricSecurityBindingElement.cs : find ClientCredentials from
3160           BindingParameterCollection, not from binding element properties.
3161
3162 2006-08-28  Atsushi Enomoto  <atsushi@ximian.com>
3163
3164         * SecurityChannelFactory.cs, SymmetricSecurityChannelFactory.cs :
3165           renamed former to latter.
3166
3167 2006-08-25  Atsushi Enomoto  <atsushi@ximian.com>
3168
3169         * SecurityBindingElement.cs : SetIssuerBindingContext should also
3170           work for SslSecurityTokenParameters.
3171
3172 2006-08-24  Atsushi Enomoto  <atsushi@ximian.com>
3173
3174         * SecurityBindingElement.cs :
3175           Added SetIssuerBindingContextIfRequired().
3176         * SecurityChannelFactory.cs :
3177           Changed .ctor() arg again, just to receive binding element.
3178         * SymmetricSecurityBindingElement.cs :
3179           Call SetIssuerBindingContextIfRequired() in BuildChannelFactory().
3180           SymmetricSecurityChannelFactory .ctor() arg changes.
3181           "ProtectionTokenParameters" is not passed now.
3182
3183 2006-08-23  Atsushi Enomoto  <atsushi@ximian.com>
3184
3185         * SymmetricSecurityBindingElement.cs : requirements should be
3186           filled at InitializeSecurityTokenParameters as long as possible.
3187           SymmetricSecurityChannelFactory<T> now does not receive
3188           requirements (it now creates one inside it) at .ctor().
3189         * SecurityChannelFactory.cs : remove requirement argument.
3190
3191 2006-08-23  Atsushi Enomoto  <atsushi@ximian.com>
3192
3193         * SymmetricSecurityBindingElement.cs : implemented copy constructor.
3194
3195 2006-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3196
3197         * SymmetricSecurityBindingElement.cs :
3198           MessageSecurityVersion property is of type SecurityTokenVersion.
3199         * SecurityBindingElement.cs :
3200           Implemented CreateSecureConversationBindingElement().
3201           For CreateIssuedTokenBindingElement(), ProtectionTokenParameters is
3202           the argument IssuedSecurityTokenParameters itself.
3203
3204 2006-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3205
3206         * SymmetricSecurityBindingElement.cs :
3207           CreateSecurityTokenManager() can be directly used now. 
3208           Use CallInitializeSecurityTokenRequirement() to fill requirement
3209           properties.
3210
3211 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
3212
3213         * ChannelFactoryBase.cs : GetProperty() is virtual.
3214
3215 2006-08-14  Atsushi Enomoto  <atsushi@ximian.com>
3216
3217         * SymmetricSecurityBindingElement.cs : in BuildChannelFactory(),
3218           create token manager, token parameters and token requirements,
3219           and fill some requirements.
3220         * TransportBindingElement.cs, HttpTransportBindingElement.cs,
3221           TextMessageEncodingBindingElement.cs : workaround to not throw NIE.
3222         * BindingContext.cs : implemented RemainingBindingElements.
3223           kill "no remaining binding element" error in GetInnerProperty()
3224         * SecurityChannelFactory.cs : now it became 
3225           SymmetricSecurityChannelFactory, thus soon to be renamed.
3226           Several ongoing actual security resolution is on.
3227
3228 2006-08-11  Atsushi Enomoto  <atsushi@ximian.com>
3229
3230         * CommunicationObject.cs :
3231           add GetCommunicationObjectType() and use it.
3232         * ChannelFactoryBase.cs, ChannelListenerBase_1.cs :
3233           use ThrowIfDisposedOrNotOpen().
3234         * LayeredCommunicationObject.cs : have similar ThrowIf...() methods
3235           to CommunicationObject. Make it IDisposable.
3236         * LayeredRequestChannel.cs : use above.
3237         * SecurityChannelFactory.cs : removed state check as it is done at
3238           above class.
3239
3240 2006-08-10  Atsushi Enomoto  <atsushi@ximian.com>
3241
3242         * SecurityBindingElement.cs : (CanBuildChannelFactory and
3243           CanBuildChannelListener) directly dispatch to BindingContext.
3244         * SymmetricSecurityBindingElement.cs : require protection token
3245           parameters before building a channel or a listener.
3246         * ChannelFactoryBase.cs : raise an error when a channel is being
3247           created without opening the factory.
3248         * ChannelListenerBase_1.cs : ditto for the listener.
3249         * SecurityChannelFactory.cs : before sending a request, it must be
3250           opened.
3251
3252 2006-08-07  Atsushi Enomoto  <atsushi@ximian.com>
3253
3254         * MessageBufferImpl.cs : initialize fields.
3255           workaround BufferSize just to return 0.
3256         * MessageImpl.cs : for BodyWriter, don't use DefaultMessageBuffer
3257           which does not support multi time write.
3258         * Message.cs : implemented State.
3259
3260 2006-08-07  Atsushi Enomoto  <atsushi@ximian.com>
3261
3262         * Message.cs : OnGetBodyAttribute() cannot return anything unless it
3263           is consuming XmlReader.
3264           Implemented OnCreateBufferedCopy(), to return XPathMessageBuffer.
3265         * MessageBuffer.cs : implemented CreateNavigator().
3266         * MessageBufferImpl.cs : added XPathMessageBuffer class.
3267
3268         I kinda know that MS heavily depends on binary XmlReader and may have
3269         XPathNavigator implementation based on the binary stuff, but at
3270         least for now we have almost no motivation to mimick it.
3271
3272 2006-08-07  Atsushi Enomoto  <atsushi@ximian.com>
3273
3274         * SecurityChannelFactory.cs : a bit more of security header code.
3275
3276 2006-08-04  Atsushi Enomoto  <atsushi@ximian.com>
3277
3278         * SymmetricSecurityBindingElement.cs :
3279           set default MessageProtectionOrder in every construction.
3280
3281 2006-08-03  Atsushi Enomoto  <atsushi@ximian.com>
3282
3283         * LayeredRequestChannel.cs, SecurityChannelFactory.cs : 
3284           changed to require ChannelFactoryBase to support default timeout.
3285           Made some methods non-virtual. Preparing code to add security
3286           headers (empty yet).
3287         * SecurityBindingElement.cs : implemented several factory methods
3288           that return SymmetricSecurityBindingElement.
3289
3290 2006-08-02  Atsushi Enomoto  <atsushi@ximian.com>
3291
3292         * IStreamUpgradeBindingElement.cs,
3293           StreamUpgradeBindingElement.cs : renamed from former to latter.
3294
3295 2006-08-02  Atsushi Enomoto  <atsushi@ximian.com>
3296
3297         * IStreamUpgradeBindingElement.cs : API update, soon to be renamed.
3298
3299 2006-07-31  Ankit Jain  <jankit@novell.com>
3300
3301         * MessageHeaders.cs (From): Use Constants.WSA1
3302         (MessageId): Implement the same pattern as other properties (From etc).
3303
3304 2006-07-28  Atsushi Enomoto  <atsushi@ximian.com>
3305
3306         * LocalClientSecuritySettings.cs : initialize IdentityVerifier as well.
3307         * SecurityBindingElement.cs : some cosmetic changes.
3308
3309 2006-07-28  Atsushi Enomoto  <atsushi@ximian.com>
3310
3311         * SecurityBindingElement.cs : LocalClientSettings and 
3312           LocalServiceSettings returns an instance for each.
3313         * LocalClientSecuritySettings.cs : initialized fields.
3314
3315 2006-07-28  Atsushi Enomoto  <atsushi@ximian.com>
3316
3317         * LocalClientSecuritySettings.cs : moved from S.SM.Description, and
3318           kinda implemented Clone() just with MemberwiseClone().
3319
3320 2006-07-27  Ankit Jain  <jankit@novell.com>
3321
3322         * MessageHeaders.cs (set_To): Use Uri.AbsoluteUri .
3323         * MessageHeader.cs (knownTypes): New. Known type array containing
3324         EndpointAddress10.
3325         (CreateHeader): Use knownTypes with the DataContractSerializer .ctor
3326
3327 2006-07-21  Atsushi Enomoto  <atsushi@ximian.com>
3328
3329         * LayeredRequestChannel.cs, LayeredReplyChannel.cs,
3330           LayeredCommunicationObject.cs,
3331           SecurityChannelFactory.cs, SecurityChannelListener.cs :
3332           new files to support security channels, though right now they
3333           just pass inner channels through.
3334         * SymmetricSecurityBindingElement.cs : use above.
3335
3336 2006-07-21  Atsushi Enomoto  <atsushi@ximian.com>
3337
3338         * AsymmetricSecurityBindingElement.cs,
3339           SymmetricSecurityBindingElement.cs :
3340           Default SecurityTokenParameters is null.
3341
3342 2006-07-20  Atsushi Enomoto  <atsushi@ximian.com>
3343
3344         * AsymmetricSecurityBindingElement.cs : remove NotImpl for now.
3345
3346 2006-07-20  Atsushi Enomoto  <atsushi@ximian.com>
3347
3348         * Message.cs : When EnvelopeVersion is None, don't write SOAP
3349           envelope.
3350         * MessageHeader.cs : don't write headers when EnvelopeVersion is None.
3351         * MessageHeaders.cs : When EnvelopeVersion is None, don't output
3352           headers. When AddressingVersion is None, don't output addressing
3353           headers as well, except for Action which is still needed by
3354           service dispatcher.
3355
3356 2006-07-20  Atsushi Enomoto  <atsushi@ximian.com>
3357
3358         * MessageHeaders.cs : changed specific properties to find it from
3359           headers as Action property does (local variables won't be set by
3360           setter). Cache serializers. Check null serializer arguments.
3361           For EndpointAddress, GetHeader<T>() shouldn't use serializer.
3362
3363 2006-07-19  Atsushi Enomoto  <atsushi@ximian.com>
3364
3365         * MessageHeader.cs : WriteTo() should treat EndpointAddress to not
3366           use XmlObjectSerializer (since it is not data contract type).
3367
3368 2006-07-18  Atsushi Enomoto  <atsushi@ximian.com>
3369
3370         * MessageImpl.cs : Improved ReadHeaders().
3371           For certain header items, use EndpointAddress.ReadFrom().
3372
3373 2006-07-18  Atsushi Enomoto  <atsushi@ximian.com>
3374
3375         * AsymmetricSecurityBindingElement.cs :
3376           it is not ISecurityCapabilities anymore.
3377
3378 2006-07-18  Atsushi Enomoto  <atsushi@ximian.com>
3379
3380         * MessageVersion.cs : added None.
3381
3382 2006-07-14  Atsushi Enomoto  <atsushi@ximian.com>
3383
3384         * Message.cs : GetReaderAtBodyContents() implementation using
3385           writer methods.
3386
3387 2006-07-13  Atsushi Enomoto  <atsushi@ximian.com>
3388
3389         * Message.cs : CreateMessage(version,action,xmlReader) incorrectly
3390           used MessageVersion.Default.
3391
3392 2006-07-12  Duncan Mak  <duncan@novell.com>
3393
3394         * MessageBuffer.cs (MessageContentType): Return
3395         "application/soap+msbin1".
3396
3397         * MessageImpl.cs (EmptyMessage.OnCreateBufferedCopy):
3398         (SimpleMessage.OnCreateBufferedCopy):
3399         (XmlReaderMessage.OnCreateBufferedCopy): Hook up with the new
3400         MessageBuffer implementations.
3401
3402         * MessageBufferImpl.cs: Concrete implmentations for MessageBuffer.
3403         (DefaultMessageBuffer): Used by EmptyMessage and SimpleMessage.
3404         (XmlReaderMessageBuffer): Used by XmlReaderMessage.
3405
3406 2006-07-12  Atsushi Enomoto  <atsushi@ximian.com>
3407
3408         * MessageImpl.cs : Action should be added in request messages. Omit
3409           it only in reply message, thus moved to dispatcher logic.
3410
3411 2006-07-12  Ankit Jain  <jankit@novell.com>
3412
3413         * HttpRequestChannel.cs (HttpRequestChannel.Request): Workaround for a
3414         bug in WebConnectionStream.
3415         * MessageHeaders.cs (MessageHeaders.From):
3416         (MessageHeaders.ReplyTo):
3417         (MessageHeaders.To): Add the corresponding MessageHeader on set.
3418
3419 2006-07-11  Atsushi Enomoto  <atsushi@ximian.com>
3420
3421         * MessageImpl.cs : when AddressingVersion is None (e.g. POX), don't
3422           add SOAP Action to the response at any time.
3423
3424 2006-07-10  Atsushi Enomoto  <atsushi@ximian.com>
3425
3426         * SymmetricSecurityBindingElement.cs,
3427           SecurityBindingElement.cs : They are not ISecurityCapabilities now.
3428           Implemented .ctor() and some properties.
3429
3430 2006-07-10  Atsushi Enomoto  <atsushi@ximian.com>
3431
3432         * TransactionFlowBindingElement.cs : new file.
3433         * HttpTransportBindingElement.cs : added missing KeepAliveEnabled.
3434
3435 2006-07-06  Atsushi Enomoto  <atsushi@ximian.com>
3436
3437         * MessageFault.cs :
3438           DefaultAction vanished. CreateFault() now takes bufferSize arg.
3439         * MessageHeaders.cs : ArgumentException -> MessageHeaderException.
3440         * AddressingVersion.cs : added None. Equals() and GetHashCode()
3441           vanished (there is anyways no way to instantiate this type).
3442         * MessageVersion.cs : added Soap11 and Soap12.
3443         * TextMessageEncoder.cs : silly quotation mark wrapper disappeared
3444           in June CTP. goodie.
3445
3446 2006-07-05  Atsushi Enomoto  <atsushi@ximian.com>
3447
3448         * MtomMessageEncoder.cs, BinaryMessageEncoder.cs, Message.cs :
3449           removed some vanished CreateMessage() overloads.
3450
3451 2006-07-05  Atsushi Enomoto  <atsushi@ximian.com>
3452
3453         * CustomBinding.cs, HttpsTransportBindingElement.cs, 
3454           HttpTransportBindingElement.cs :
3455           They are not ISecurityCapabilities anymore.
3456           Modified code to match June CTP behavior.
3457
3458 2006-07-05  Atsushi Enomoto  <atsushi@ximian.com>
3459
3460         * StreamSecurityUpgradeProvider.cs : Identity -> EndpointIdentity.
3461
3462 2006-07-05  Atsushi Enomoto  <atsushi@ximian.com>
3463
3464         * EmptyFaultException.cs : removed unused code.
3465         * IRequestContext.cs, RequestContext.cs : renamed former to latter.
3466
3467 2006-07-05  Atsushi Enomoto  <atsushi@ximian.com>
3468
3469         * LayeredChannelFactory.cs : removed obsolete class.
3470         * ChannelFactoryBase.cs, HttpChannelFactory.cs,
3471           ChannelListenerBase.cs, HttpChannelListener.cs,
3472           HttpReplyChannel.cs, ChannelManagerBase.cs :
3473           all those changes were brought by ChannelManagerBase changes.
3474
3475 2006-07-05  Atsushi Enomoto  <atsushi@ximian.com>
3476
3477         * ReplyChannelBase.cs, HttpChannelFactory.cs, ChannelBase.cs
3478           CommunicationObject.cs, HttpChannelListener.cs,
3479           ChannelFactoryBase.cs :
3480           CommunicationObject abstract changes brought this madness.
3481
3482 2006-07-05  Atsushi Enomoto  <atsushi@ximian.com>
3483
3484         * BindingContext.cs : listenUri address parameters could be null in
3485           June CTP.
3486
3487 2006-07-05  Atsushi Enomoto  <atsushi@ximian.com>
3488
3489         * IRequestContext.cs :
3490           Now it became a class. File renaming will follow soon.
3491         * IChannelFactory.cs, IInputChannel.cs, IReplyChannel.cs,
3492           IDuplexChannel.cs, IDuplexSessionChannel.cs,
3493           IOutputChannel.cs, IOutputSessionChannel.cs,
3494           IRequestChannel.cs, IRequestSessionChannel.cs :
3495           They are not IDisposable anymore.
3496           For IReplyChannel, IRequestContext -> RequestContext.
3497         * IChannelListener.cs : removed Identity. Added GetProperty().
3498         * ChannelListenerBase.cs, ChannelListenerBase.cs,
3499           ReplyChannelBase.cs, HttpReplyChannel.cs :
3500           Several members disappeared, and dependent changes.
3501         * HttpTransportBindingElement.cs,
3502           HttpChannelListener.cs, :
3503           ChannelListenerBase.SharedChannelListener vanished.
3504
3505 2006-07-05  Atsushi Enomoto  <atsushi@ximian.com>
3506
3507         * MessageEncodingBindingElement.cs
3508           MtomMessageEncodingBindingElement.cs,
3509           TextMessageEncodingBindingElement.cs,
3510           BinaryMessageEncodingBindingElement.cs :
3511           June CTP updates: AddressingVersion -> MessageVersion.
3512         * Binding.cs : June CTP. MessageVersion is added.
3513         * ChannelBase.cs, BindingContext.cs, IChannel.cs
3514           ChannelListenerBase_1.cs,
3515           ChannelListenerBase.cs, IChannelListener.cs,
3516           IChannelFactory.cs,
3517           ChannelFactoryBase.cs, ChannelManagerBase.cs :
3518           June CTP. Several interface changes.
3519         * HttpTransportBindingElement.cs : June CTP. HttpMappingMode is gone.
3520         * IChannelManager.cs, LayeredChannelListener.cs,
3521           GenericWrapperChannelFactory.cs,
3522           GenericWrapperChannelListener.cs : They are not used anymore.
3523
3524 2006-07-04  Atsushi Enomoto  <atsushi@ximian.com>
3525
3526         * MtomMessageEncoder.cs, BinaryMessageEncoder.cs :
3527           sync fix with June CTP API updates.
3528
3529 2006-07-03  Ankit Jain  <jankit@novell.com>
3530
3531         * MessageEncodingBindingElementConverter.cs:
3532         * StandardBindingConverter.cs:
3533         * TransportBindingElementConverter.cs:
3534         * TransactionFlowBindingElementConverter.cs:
3535         * ReliableSessionBindingElementConverter.cs:
3536         * SecurityBindingElementConverter.cs:
3537         Rename *Converter.cs to *Importer.cs
3538
3539         * TransferMode.cs: Move to System.ServiceModel
3540
3541 2006-06-22  Atsushi Enomoto  <atsushi@ximian.com>
3542
3543         * CommunicationObject.cs : make sure to change State before
3544           OnClosing/OnClosed/OnOpening/OnOpened when they are overriden.
3545
3546 2006-06-20  Atsushi Enomoto  <atsushi@ximian.com>
3547
3548         * Message.cs : output WSAddressing xmlns only when Action is
3549           specified (To should be affected, but seems like it is ignored).
3550
3551 2006-06-20  Atsushi Enomoto  <atsushi@ximian.com>
3552
3553         * MessageImpl.cs : don't set Action when it is null.
3554
3555 2006-06-12  Ankit Jain  <jankit@novell.com>
3556
3557         * TransportBindingElementConverter.cs (ImportEndpoint): Implement.
3558
3559 2006-05-29  Atsushi Enomoto  <atsushi@ximian.com>
3560
3561         * SecurityBindingElement.cs, SecurityBindingElementConverter.cs :
3562           some updated API fixes.
3563
3564 2006-05-29  Atsushi Enomoto  <atsushi@ximian.com>
3565
3566         * EnvelopeVersion.cs : moved back to S.SM.
3567
3568 2006-05-29  Atsushi Enomoto  <atsushi@ximian.com>
3569
3570         * IBindingManualAddressing.cs : vanished in beta2.
3571         * HostedTransportConfiguration.cs, EnvelopeVersion.cs,
3572           LocalClientSecuritySettings.cs, LocalServiceSecuritySettings.cs :
3573           namespace changes.
3574         * SecurityBindingElement.cs :
3575           SecurityStandardsManager -> SecurityTokenSerializer.
3576
3577 2006-05-29  Atsushi Enomoto  <atsushi@ximian.com>
3578
3579         * XmlSerializerBodyWriter.cs : new file to handle 
3580           TypedMessageConverter.ToMessage().
3581
3582 2006-04-26  Ankit Jain  <jankit@novell.com>
3583
3584         * TransportBindingElementConverter.cs (BeforeImport): Remove
3585         NotImplementedException.
3586         (ImportContract): Likewise.
3587         * CustomBinding.cs (.ctor): Use scheme from the binding parameter.
3588
3589 2006-04-14  Atsushi Enomoto  <atsushi@ximian.com>
3590
3591         * HttpRequestChannel.cs, HttpChannelFactory.cs : message encoder 
3592           being used was not reflecting that of Binding elements.
3593
3594 2006-04-07  Atsushi Enomoto  <atsushi@ximian.com>
3595
3596         * HttpReplyChannel.cs : when SOAP action is not set as a header item,
3597           just assume that it is in the message.
3598
3599 2006-04-06  Atsushi Enomoto  <atsushi@ximian.com>
3600
3601         * HttpReplyChannel.cs : actually HTTP header item might be null.
3602
3603 2006-04-06  Atsushi Enomoto  <atsushi@ximian.com>
3604
3605         * HttpReplyChannel.cs : under SOAP 1.1 SOAP Action is sent as HTTP
3606           header.
3607
3608 2006-04-06  Atsushi Enomoto  <atsushi@ximian.com>
3609
3610         * TextMessageEncoder.cs : for SOAP 1.1 content type is text/xml.
3611
3612 2006-04-06  Atsushi Enomoto  <atsushi@ximian.com>
3613
3614         * MessageFault.cs : Fixed SOAP12 reason output.
3615
3616 2006-04-05  Atsushi Enomoto  <atsushi@ximian.com>
3617
3618         * HttpReplyChannel.cs : no need to set response ContentEncoding since
3619           MessageEncoder.ContentType explicitly contains encoding.
3620         * AddressingVersion.cs : added ActionNotSupported property. Not sure
3621           if it is SOAP version dependent.
3622
3623 2006-03-23  Atsushi Enomoto  <atsushi@ximian.com>
3624
3625         * HttpReplyChannel.cs : actually I could just workaround bug #77816.
3626
3627 2006-03-16  Atsushi Enomoto  <atsushi@ximian.com>
3628
3629         * HttpChannelFactory.cs BindingContext.cs
3630           HttpChannelListener.cs HttpTransportBindingElement.cs :
3631           Now BindingContext holds MessageEncoder, and non-custom
3632           channel factory/listener should use it.
3633         * MtomMessageEncodingBindingElement.cs
3634           TextMessageEncodingBindingElement.cs
3635           BinaryMessageEncodingBindingElement.cs : BuildChannelFactory()/
3636           -Listener() now sets internal BindingContext.MessageEncoder.
3637           Fixed some public API.
3638
3639 2006-03-15  Atsushi Enomoto  <atsushi@ximian.com>
3640
3641         * BindingContext.cs : CanBuildChannelXXX() should not raise error
3642           for insufficient elements.
3643         * DispatchRuntime.cs : OperationDescription name is not action. So
3644           OperationSelector is created by name, not by action.
3645         * TextMessageEncodingBindingElement.cs : Feb. CTP API fixes.
3646
3647 2006-03-14  Atsushi Enomoto  <atsushi@ximian.com>
3648
3649         * MessageFaultBodyWriter.cs
3650           XmlReaderBodyWriter.cs
3651           XmlObjectSerializerBodyWriter.cs : made internal.
3652         * SecurityBindingElement.cs
3653           AsymmetricSecurityBindingElement.cs
3654           SymmetricSecurityBindingElement.cs : API fixes.
3655         * TransportBindingElementConverter.cs : ditto.
3656         * TextMessageEncodingBindingElement.cs : added set_AddressingVersion.
3657         * WindowsStreamSecurityBindingElement.cs
3658           SslStreamSecurityBindingElement.cs
3659           TransportSecurityBindingElement.cs : new files.
3660
3661 2006-03-14  Atsushi Enomoto  <atsushi@ximian.com>
3662
3663         * MessageImpl.cs : according to the W3C REC, mustUnderstand when
3664           reading can be any xs:boolean value.
3665
3666 2006-03-14  Atsushi Enomoto  <atsushi@ximian.com>
3667
3668         * Message.cs MessageImpl.cs : more sorting out the role of each
3669           write method.
3670         * MessageHeader.cs : use envelope namespace, not addressing namespace.
3671
3672 2006-03-14  Atsushi Enomoto  <atsushi@ximian.com>
3673
3674         * Message.cs : don't write body contents if it is empty.
3675           Moved WriteStartElement(,"Header",) to OnWriteStartHeaders().
3676         * MessageImpl.cs : implemented XmlReaderMessage.OnWriteBodyContents().
3677         * TextMessageEncoder.cs : WriteMessage() should close XmlWriter.
3678         * HttpRequestChannel.cs : close request stream before GetResponse().
3679
3680 2006-03-13  Atsushi Enomoto  <atsushi@ximian.com>
3681
3682         * TextMessageEncoderFactory.cs
3683           TextMessageEncoder.cs : encoder does not hold reference to the
3684           factory anymore. Use MessageVersion property in CreateMssage().
3685         * HttpChannelListener.cs : now it holds message encoder.
3686         * HttpReplyChannel.cs : now it uses listener's shared message encoder.
3687         * MessageImpl.cs : header is optional.
3688         * EnvelopeVersion.cs : namespace URI is missing.
3689
3690 2006-03-10  Atsushi Enomoto  <atsushi@ximian.com>
3691
3692         * CustomBinding.cs : removed Initialize().
3693         * Message.cs : renamed ForwardingMessage -> XmlReaderMessage.
3694         * MessageImpl.cs : renamed ForwardingMessage to XmlReaderMessage (used
3695           by Message.CreateMessage(MessageVersion,XmlReader,int) and
3696           implemented Headers, IsEmpty and GetReaderAtBodyContents().
3697
3698 2006-03-08  Atsushi Enomoto  <atsushi@ximian.com>
3699
3700         * MessageHeaders.cs : implemented GetReaderAtHeader() and Action (it
3701           could be also added by Add() method and could be reset by Remove()).
3702         * MessageImpl.cs : implemented more. As noted above, Now we don't 
3703           have to add Action header explicitly.
3704         * MessageHeader.cs : recovered Writer methods and ToString() from
3705           commented old version. Use prefixes for writing.
3706           Use WriteObjectContent() rather than WriteObject() (it needs
3707           DataContractSerializer fix btw).
3708
3709 2006-03-08  Atsushi Enomoto  <atsushi@ximian.com>
3710
3711         * MessageHeader.cs : added missing IsReferenceParameter.
3712         * MessageHeaderInfo.cs : added missing IsReferenceParameter.
3713         * MessageHeaders.cs : avoid NullRef when actors is null.
3714         * MessageImpl.cs : (MessageImplBase) add Action header in .ctor().
3715           (ForwardingMessage) reader consumer is being added (not done).
3716         * MtomMessageEncodingBindingElement.cs : simply use Mtom factory.
3717         * MtomMessageEncoder.cs : updated ContentType value to Feb. CTP.
3718         * HttpRequestChannel.cs : this channel automatically call Open()
3719           when Request() is called. Set content length for request.
3720           Use MessageEncoder's ContentType to also handle charset.
3721
3722 2006-03-07  Atsushi Enomoto  <atsushi@ximian.com>
3723
3724         * MessageImpl.cs : make them internal.
3725         * HttpReplyChannel.cs : set HttpListenerResponse properties correctly.
3726
3727 2006-03-07  Atsushi Enomoto  <atsushi@ximian.com>
3728
3729         * ChannelManagerBase.cs : cleanup MonoTODO and unused field.
3730         * HttpChannelListener.cs : removed commented line.
3731         * RequestChannelBase.cs : new base class for request channel classes.
3732         * ChannelListenerBase.cs : OnEndClose() is rather NotImplemented yet.
3733         * HttpReplyChannel.cs : WaitHandle accepts limited timeout value.
3734         * Message.cs : default IsEmpty and IsFault false by default.
3735         * LayeredChannelListener.cs : removed Uri (no chance to set).
3736         * ChannelBase.cs : reimplemented timeout properties.
3737         * HttpRequestChannel.cs : now it is mostly based on
3738           RequestChannelBase. Some more attempt to implement Request().
3739
3740 2006-03-07  Atsushi Enomoto  <atsushi@ximian.com>
3741
3742         * Binding.cs CustomBinding.cs : removed OnApplyConfiguration() and
3743           OnInitialize(). Added more BuildChannelListener() overloads.
3744
3745 2006-03-06  Atsushi Enomoto  <atsushi@ximian.com>
3746
3747         * Binding.cs : added some more missing members especially to support
3748           listener creation.
3749         * HttpChannelListener.cs : Uri should not be null.
3750         * HttpTransportBindingElement.cs : implemented
3751           CanBuildChannelFactory() and CanBuildChannelListener().
3752         * ServiceHostBase.cs : make Initialize() practically work at OnOpen().
3753
3754 2006-03-06  Atsushi Enomoto  <atsushi@ximian.com>
3755
3756         * Binding.cs : updated default namespace property value to Feb. CTP.
3757
3758 2006-03-03  Atsushi Enomoto  <atsushi@ximian.com>
3759
3760         * AddressHeader.cs : avoid null reference when value is null.
3761         * BindingContext.cs : check null ListenUri args.
3762
3763 2006-03-03  Atsushi Enomoto  <atsushi@ximian.com>
3764
3765         * MessageFault.cs : Fixed default action name. Null arg check.
3766
3767 2006-03-03  Atsushi Enomoto  <atsushi@ximian.com>
3768
3769         * BindingElement.cs : Dequeue elements in BindingContext directly.
3770         * BindingContext.cs : Added GetProperty<T>().
3771         * GenericWrapperChannelFactory.cs GenericWrapperChannelListener.cs :
3772           Now we don't need these extra classes, so marked as deprecated.
3773
3774 2006-03-03  Atsushi Enomoto  <atsushi@ximian.com>
3775
3776         * Binding.cs : null arg check.
3777         * AddressingVersion.cs : fixed constants to pass the tests.
3778         * BindingElement.cs : tiny meessage fix.
3779
3780 2006-03-02  Atsushi Enomoto  <atsushi@ximian.com>
3781
3782         * MessageEncodingBindingElement.cs
3783           BinaryMessageEncodingBindingElement.cs
3784           TextMessageEncodingBindingElement.cs
3785           MtomMessageEncodingBindingElement.cs
3786           MessageEncodingBindingElementConverter.cs : several API fixes.
3787         * BindingElement.cs : now if we use generic wrapper it causes
3788           infinite loop, so for now replace it with most-possible-but-
3789           untested logic.
3790
3791 2006-03-02  Atsushi Enomoto  <atsushi@ximian.com>
3792
3793         (back to normal "record-ChangeLogs" mode after the big API change mess)
3794         * HttpTransportBindingElement.cs : fixed minor API differences.
3795
3796 2006-02-23  Atsushi Enomoto  <atsushi@ximian.com>
3797
3798         * AsymmetricSecurityBindingElement.cs SecurityBindingElement.cs
3799           SymmetricSecurityBindingElement.cs :
3800           Dependent fixes for System.IdentityModel reorgainzation.
3801
3802 2006-02-23  Atsushi Enomoto  <atsushi@ximian.com>
3803
3804         * InputChannelBase.cs.notused IInputSession.cs IOutputSession.cs
3805           IProxyFormatter.cs WSHttpBindingBase.cs 
3806           PnrpPeerResolverBindingElement.cs IMessageHeaderInfo.cs
3807           MessageInterceptorEventArgs.cs WSHttpBinding.cs
3808           WSFederationBinding.cs ISessionChannel.cs
3809           CompositeDuplexBindingElement.cs MessageVersion.cs
3810           MessageHeader.cs IRequestSessionChannel.cs 
3811           BindingElementCollection.cs IReplySessionChannel.cs
3812           MessageProperties.cs IDuplexClientChannel.cs
3813           IInputSessionChannel.cs MessageImpl.cs IDuplexSessionChannel.cs
3814           TcpTransportBindingElement.cs EmptyFaultException.cs
3815           IBindingRuntimePreferences.cs AddressHeaderCollection.cs
3816           IStubFormatter.cs AsymmetricSecurityBindingElement.cs
3817           ConnectionOrientedTransportBindingElement.cs
3818           IProxyOperationSelector.cs MessageBuffer.cs IChannel.cs
3819           PeerResolverBindingElement.cs Message.cs
3820           HttpsTransportBindingElement.cs BindingElement.cs
3821           NamedPipetransportBindingElement.cs IBindingManualAddressing.cs
3822           MessageFaultBodyWriter.cs IReplyChannel.cs
3823           IBindingCapabilities.cs AddressHeader.cs IInputChannel.cs
3824           IMessageProperty.cs IOutputChannel.cs NetPeerTcpBinding.cs
3825           IRequestContext.cs IInputSessionShutdown.cs
3826           SecurityBindingElement.cs PeerTransportBindingElement.cs
3827           IDuplexSession.cs IChannelInitializer.cs
3828           IProxyMessageInspector.cs IChannelListener.cs NetTcpBinding.cs
3829           AddressingVersion.cs FaultException.cs
3830           IRequestChannel.cs MtomMessageEncodingBindingElement.cs
3831           TransportBindingElement.cs BinaryMessageEncodingBindingElement.cs
3832           TextMessageEncodingBindingElement.cs IChannelFactory.cs Binding.cs
3833           ITransportBindingElement.cs IChannelManager.cs MessageFault.cs
3834           MessageHeaders.cs IStubMessageInspector.cs UnderstoodHeaders.cs
3835           BindingParameterCollection.cs IInstanceProvider.cs
3836           WSDualHttpBinding.cs ISession.cs IErrorHandler.cs
3837           MessageEncodingBindingElement.cs HttpTransportBindingElement.cs
3838           IDuplexChannel.cs CustomBinding.cs IOutputSessionChannel.cs
3839           MessageContractAttribute.cs SymmetricSecurityBindingElement.cs :
3840           moved from System.ServiceModel due to the API changes.
3841
3842 2006-02-23  Atsushi Enomoto  <atsushi@ximian.com>
3843
3844         * ChannelFactoryBase.cs ChannelListenerBase.cs HttpChannelFactory.cs
3845           HttpChannelListener.cs HttpRequestChannel.cs
3846           LayeredChannelListener.cs PeerMessagePropagationFilter.cs
3847           PeerNode.cs ReplyChannelBase.cs :
3848           Feb. CTP API changes - chapter 1.
3849
3850 2006-02-15  Atsushi Enomoto  <atsushi@ximian.com>
3851
3852         * ChannelBase.cs : OnOpen() and OnClosed() do nothing.
3853         * ReplyChannelBase.cs : now it is based on ChannelBase.
3854         * ChannelListenerBase_1.cs : use DefaultCommunicationTimeouts.Instance
3855           and check null argument in .ctor().
3856         * HttpReplyChannel.cs : several changes.
3857           Non-async members are mostly implemented.
3858         * HttpChannelListener.cs : no need to receive 
3859           IDefaultCommunicationTimeouts.
3860         * HttpRequestChannel.cs : maxSizeOfHeaders is used in MessageHeaders
3861           to allocate buffer array and int.MaxValue causes OutOfMemory.
3862
3863 2006-02-15  Atsushi Enomoto  <atsushi@ximian.com>
3864
3865         * ClientFramingDecoderState.cs : added missing enum.
3866         * HttpRequestMessageProperty.cs HttpResponseMessageProperty.cs :
3867           added missing bits.
3868         * ChannelBase.cs, LayeredChannelListener.cs : tiny API fixes.
3869
3870 2006-02-15  Atsushi Enomoto  <atsushi@ximian.com>
3871
3872         * HttpChannelListener.cs : Added GetChannels() and OnClose().
3873           AcceptChannel() has some code now but it needs more love.
3874
3875 2006-02-14  Atsushi Enomoto  <atsushi@ximian.com>
3876
3877         * CommunicationObject.cs : Close() does not call Begin/EndClose().
3878         * ChannelManagerBase.cs : implemented AbortChannel and CloseChannel.
3879         * ChannelListenerBase.cs : implemented OnAbort and OnClose.
3880
3881 2006-02-10  Atsushi Enomoto  <atsushi@ximian.com>
3882
3883         * HttpRequestChannel.cs : close the streams.
3884         * HttpListener.cs
3885           HttpChannelListener.cs : renamed from former to latter.
3886
3887 2006-02-09  Atsushi Enomoto  <atsushi@ximian.com>
3888
3889         * ReplyChannelBase.cs : new file for IReplyChannel implementations.
3890         * HttpReplyChannel.cs : new file for HTTP IReplyChannel.
3891         * HttpListenerFactory.cs : removed obsolete file.
3892         * HttpListener.cs : hacky WaitForChannel and AcceptChannel.
3893         * ChannelListenerBase_1.cs : implemented virtual stuff.
3894         * CommunicationObject.cs : Open() should not call BeginOpen() and
3895           EndOpen(). Instead, invoke events individually.
3896         * ChannelListenerBase.cs : its Open() is WaitForChannel().
3897
3898 2006-02-08  Atsushi Enomoto  <atsushi@ximian.com>
3899
3900         * HttpRequestChannel.cs : call Flush() after serializing message
3901           into HTTP stream.
3902
3903 2006-02-08  Atsushi Enomoto  <atsushi@ximian.com>
3904
3905         * HttpRequestChannel.cs : implemented pretty hacky Request().
3906
3907 2006-02-02  Atsushi Enomoto  <atsushi@ximian.com>
3908
3909         * HttpRequestChannel.cs : Manager is HttpChannelFactory.
3910
3911 2006-02-01  Atsushi Enomoto  <atsushi@ximian.com>
3912
3913         * ChannelFactoryBase.cs : removed some NotImplementedException for
3914           further internal implementation.
3915
3916 2006-01-26  Atsushi Enomoto  <atsushi@ximian.com>
3917
3918         * HttpRequestChannel.cs : new file. mostly not implemented.
3919         * HttpChannelFactory.cs : Implemented CanCreateChannel().
3920           Partly implemented CreateChannel().
3921
3922 2006-01-26  Atsushi Enomoto  <atsushi@ximian.com>
3923
3924         * HttpChannelFactory.cs : (.ctor())
3925           Don't take ChannelBuildContext.
3926
3927 2005-11-21  Atsushi Enomoto  <atsushi@ximian.com>
3928
3929         * StreamSecurityUpgradeInitiator.cs PeerMessageOrigination.cs
3930           ChannelBase.cs StreamSecurityUpgradeAcceptor.cs
3931           PeerMessagePropagation.cs : updated to Nov. CTP.
3932
3933 2005-11-21  Atsushi Enomoto  <atsushi@ximian.com>
3934
3935         * ChannelListenerBase.cs, ChannelManagerBase.cs,
3936           ChannelListenerBase_1.cs, LayeredChannelListener.cs,
3937           StreamSecurityUpgradeAcceptor.cs,
3938           StreamSecurityUpgradeInitiator.cs :
3939           Updated to Nov. CTP API.
3940
3941 2005-11-21  Atsushi Enomoto  <atsushi@ximian.com>
3942
3943         Now we can rename ListenerFactoryBase.cs to ChannelListenerBase.cs.
3944
3945 2005-11-21  Atsushi Enomoto  <atsushi@ximian.com>
3946
3947         renamed ChannelListenerBase.cs to ChannelListenerBase_1.cs.
3948
3949 2005-11-21  Atsushi Enomoto  <atsushi@ximian.com>
3950
3951         * ChannelBase.cs : tiny filename fix.
3952         * ChannelListenerBase.cs : added more .ctor()s.
3953
3954 2005-11-21  Atsushi Enomoto  <atsushi@ximian.com>
3955
3956         * HttpListenerFactory.cs LayeredChannelListener.cs HttpListener.cs
3957           ListenerFactoryBase.cs ChannelListenerBase.cs :
3958           updated IListener related stuff to Nov. CTP.
3959           file renaming will come soon.
3960
3961 2005-11-21  Atsushi Enomoto  <atsushi@ximian.com>
3962
3963         * ListenerBase.cs, ChannelListenerBase.cs :
3964           moved from former to latter.
3965         * LayeredListenerFactory.cs, LayeredChannelListener.cs :
3966           moved from former to latter.
3967
3968 2005-11-20  Atsushi Enomoto  <atsushi@ximian.com>
3969
3970         * SessionFaultedException.cs : removed in Nov. CTP
3971
3972 2005-11-20  Atsushi Enomoto  <atsushi@ximian.com>
3973
3974         * CommunicationObject.cs : updated to Nov. CTP.
3975         * SessionFaultedException.cs : removed (in Nov. CTP)
3976
3977 2005-11-03  Atsushi Enomoto  <atsushi@ximian.com>
3978
3979         * TextMessageEncoder.cs : kinda implemented (untested; Message is not
3980           working).
3981
3982 2005-11-03  Atsushi Enomoto  <atsushi@ximian.com>
3983
3984         * MtomMessageEncoder.cs, BinaryMessageEncoderFactory.cs,
3985           TextMessageEncoderFactory.cs, BinaryMessageEncoder.cs,
3986           TextMessageEncoder.cs, MtomMessageEncoderFactory.cs : new files.
3987         * MessageEncoder.cs : largely implemented.
3988
3989 2005-11-02  Atsushi Enomoto  <atsushi@ximian.com>
3990
3991         * IRequestReplyCorrelator.cs : new file.
3992
3993 2005-11-02  Atsushi Enomoto  <atsushi@ximian.com>
3994
3995         * CommunicationObject.cs : OnClose() and OnError() are not virtual.
3996         * DirectionalAction.cs : implemented IComparable<DirectionalAction>.
3997         * MessageEncoder.cs : added misssing ToString().
3998
3999 2005-11-02  Atsushi Enomoto  <atsushi@ximian.com>
4000
4001         * ChannelBehaviorCollection.cs : moved to sys.sm.
4002
4003 2005-10-28  Atsushi Enomoto  <atsushi@ximian.com>
4004
4005         * HttpListenerFactory.cs, HttpListener.cs : new files.
4006         * ListenerFactoryBase.cs, ChannelManagerBase.cs,
4007           CommunicationObject.cs, ChannelFactoryBase.cs,
4008           StreamUpgradeProvider.cs, ChannelBase.cs : timeouts are now
4009           protected internal.
4010         * CommunicationObject.cs : Aborted is bool. Added InternalClose()
4011         * ListenerFactoryBase.cs : kinda implemented GetListeners().
4012
4013 2005-10-26  Atsushi Enomoto  <atsushi@ximian.com>
4014
4015         * ListenerFactoryBase.cs : some implementation.
4016
4017 2005-10-26  Atsushi Enomoto  <atsushi@ximian.com>
4018
4019         * CommunicationObject.cs : more state fixes.
4020
4021 2005-10-26  Atsushi Enomoto  <atsushi@ximian.com>
4022
4023         * CommunicationObject.cs : some state machine fixes.
4024
4025 2005-10-26  Atsushi Enomoto  <atsushi@ximian.com>
4026
4027         * PeerNode.cs, ChannelManagerBase.cs :
4028           several API fixes detected by improved corcompare.
4029
4030 2005-10-25  Atsushi Enomoto  <atsushi@ximian.com>
4031
4032         * LayeredListenerFactory.cs : added missing generic class constraint.
4033
4034 2005-10-25  Atsushi Enomoto  <atsushi@ximian.com>
4035
4036         * ListenerFactoryBase.cs,
4037           ListenerBase.cs : class constraints were missing for generic args.
4038
4039 2005-10-24  Atsushi Enomoto  <atsushi@ximian.com>
4040
4041         * StreamUpgradeInitiator.cs : tiny API fix.
4042
4043 2005-10-23  Atsushi Enomoto  <atsushi@ximian.com>
4044
4045         * PeerMessagePropagationFilter.cs : tiny build fix.
4046
4047 2005-10-23  Atsushi Enomoto  <atsushi@ximian.com>
4048
4049         * HttpRequestMessageProperty.cs, HttpResponseMessageProperty.cs :
4050           added Name. fixed StatusCode type.
4051         * StreamSecurityUpgradeInitiator.cs, StreamUpgradeAcceptor.cs,
4052           PeerNode.cs, StreamSecurityUpgradeAcceptor.cs,
4053           StreamUpgradeProvider.cs, StreamUpgradeInitiator.cs,
4054           DirectionalAction.cs, HostedTransportConfiguration.cs,
4055           StreamSecurityUpgradeProvider.cs, SessionFaultedException.cs,
4056           PeerMessagePropagationFilter.cs : added missing files.
4057         * Dummy.cs : removed. MSMQ stuff can be added later.
4058
4059 2005-10-21  Atsushi Enomoto  <atsushi@ximian.com>
4060
4061         * DeliveryStatus.cs, DeliveryFailure.cs,
4062           HttpRequestMessageProperty.cs, PeerMessageOrigination.cs,
4063           PeerMessagePropagation.cs, HttpResponseMessageProperty.cs :
4064           new files.
4065         * Dummy.cs : removed above.
4066
4067 2005-10-18  Atsushi Enomoto  <atsushi@ximian.com>
4068
4069         * ChannelFactoryBase.cs : tiny .ctor() delegation fix.
4070
4071 2005-10-09  Atsushi Enomoto  <atsushi@ximian.com>
4072
4073         * MessageEncoderFactory.cs, LayeredListenerFactory.cs,
4074           MessageEncoder.cs, BufferManager.cs : new files.
4075         * Dummy.cs : removed above.
4076
4077 2005-10-09  Atsushi Enomoto  <atsushi@ximian.com>
4078
4079         * ChannelBase.cs, ChannelBehaviorCollection.cs : new channel files.
4080         * Dummy.cs : removed above.
4081         * CommunicationObject.cs, ListenerFactoryBase.cs : added missing bits.
4082
4083 2005-10-09  Atsushi Enomoto  <atsushi@ximian.com>
4084
4085         * HttpChannelFactory.cs : new file.
4086
4087 2005-10-08  Atsushi Enomoto  <atsushi@ximian.com>
4088
4089         * IReplyChannel.cs, IRequestContext.cs, IRequestChannel.cs:
4090           moved to ../System.ServiceModel (correct location).
4091         * ChannelFactoryBase.cs, LayeredChannelFactory.cs, TransferMode.cs:
4092           new files for channels.
4093         * Dummy.cs : reflected above changes.
4094         * ChannelManagerBase.cs : added a bit of code and todos.
4095
4096 2005-10-04  Atsushi Enomoto  <atsushi@ximian.com>
4097
4098         * ChannelManagerBase.cs, ListenerBase.cs, ListenerFactoryBase.cs :
4099           added listener support files.
4100         * Dummy.cs : removed above.
4101
4102 2005-10-03  Atsushi Enomoto  <atsushi@ximian.com>
4103
4104         * IReplyChannel.cs, IRequestContext.cs, IRequestChannel.cs :
4105           added request/reply channel interfaces.
4106         * Dummy.cs : removed above.
4107         * CommunicationObject.cs : FIXME comments.
4108
4109 2005-10-03  Atsushi Enomoto  <atsushi@ximian.com>
4110
4111         * CommunicationObject.cs : implemented some members.
4112
4113 2005-09-29  Atsushi Enomoto  <atsushi@ximian.com>
4114
4115         * CommunicationObject.cs : some signature fixes.
4116