diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2009-09-02 14:35:08 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2009-09-02 14:35:08 +0400 |
commit | d64b10b0c7ccc26e3b3ed76768bc16f8f1e387d9 (patch) | |
tree | 9d7e2dda72786d9e4a425726fd4fe589aa2b1507 /mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher | |
parent | b98bb73fa6c661c687bb77db66dadcab445a5c2f (diff) |
2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
* WebHttpBehavior.cs : now message formatters are pairs of request/
reply formatters.
* WebMessageFormatter.cs : override some serialization methods as
prohibited.
* WebHttpBehaviorTest.cs : some message formatters tests.
svn path=/trunk/mcs/; revision=141112
Diffstat (limited to 'mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher')
-rw-r--r-- | mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs | 14 |
2 files changed, 17 insertions, 2 deletions
diff --git a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog index 5dab157b8bd..0fc0315e9d0 100644 --- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog +++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog @@ -1,5 +1,10 @@ 2009-09-02 Atsushi Enomoto <atsushi@ximian.com> + * WebMessageFormatter.cs : override some serialization methods as + prohibited. + +2009-09-02 Atsushi Enomoto <atsushi@ximian.com> + * WebHttpDispatchOperationSelector.cs : use common extension method. * WebMessageFormatter.cs : support WebMessageBodyStyle(.Wrapped*). Cache serializers. diff --git a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs index 67d3c56d8eb..401ee8fdc43 100644 --- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs +++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs @@ -171,6 +171,11 @@ namespace System.ServiceModel.Description : base (operation, endpoint, converter, behavior) { } + + public override object DeserializeReply (Message message, object [] parameters) + { + throw new NotSupportedException (); + } } internal class ReplyClientFormatter : WebClientMessageFormatter @@ -179,6 +184,11 @@ namespace System.ServiceModel.Description : base (operation, endpoint, converter, behavior) { } + + public override Message SerializeRequest (MessageVersion messageVersion, object [] parameters) + { + throw new NotSupportedException (); + } } internal class RequestDispatchFormatter : WebDispatchMessageFormatter @@ -204,7 +214,7 @@ namespace System.ServiceModel.Description { } - public Message SerializeRequest (MessageVersion messageVersion, object [] parameters) + public virtual Message SerializeRequest (MessageVersion messageVersion, object [] parameters) { if (parameters == null) throw new ArgumentNullException ("parameters"); @@ -248,7 +258,7 @@ namespace System.ServiceModel.Description return ret; } - public object DeserializeReply (Message message, object [] parameters) + public virtual object DeserializeReply (Message message, object [] parameters) { if (parameters == null) throw new ArgumentNullException ("parameters"); |