Message from discussion
Override Xml Serialization
Received: by 10.50.72.193 with SMTP id f1mr4162381igv.0.1353093315253;
Fri, 16 Nov 2012 11:15:15 -0800 (PST)
X-BeenThere: fubumvc-devel@googlegroups.com
Received: by 10.50.15.168 with SMTP id y8ls1301590igc.42.canary; Fri, 16 Nov
2012 11:15:14 -0800 (PST)
Received: by 10.50.100.193 with SMTP id fa1mr4155828igb.5.1353093314300;
Fri, 16 Nov 2012 11:15:14 -0800 (PST)
Received: by 10.50.100.193 with SMTP id fa1mr4155826igb.5.1353093314246;
Fri, 16 Nov 2012 11:15:14 -0800 (PST)
Return-Path: <m...@mikeobrien.net>
Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172])
by gmr-mx.google.com with ESMTPS id ul6si181895igb.2.2012.11.16.11.15.14
(version=TLSv1/SSLv3 cipher=OTHER);
Fri, 16 Nov 2012 11:15:14 -0800 (PST)
Received-SPF: neutral (google.com: 209.85.223.172 is neither permitted nor denied by best guess record for domain of m...@mikeobrien.net) client-ip=209.85.223.172;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.223.172 is neither permitted nor denied by best guess record for domain of m...@mikeobrien.net) smtp.mail=...@mikeobrien.net
Received: by mail-ie0-f172.google.com with SMTP id 9so4597035iec.31
for <fubumvc-devel@googlegroups.com>; Fri, 16 Nov 2012 11:15:14 -0800 (PST)
d=google.com; s=20120113;
h=mime-version:x-originating-ip:in-reply-to:references:date
:message-id:subject:from:to:content-type:x-gm-message-state;
bh=TdNKxCeUVe3D8K8Q+Xs6JC81gk3/IyHI/fdFJj5kxkU=;
b=AtsAVAxcVfnUQkGIQevVPYBz1DP0LAhZtWFc/1a1L+8pZD7djohV0o1npxZRAeQ9X+
zSWIwC+6TU+iDdYArYVC4EqWrjcarilgUgzZxFQljBfd/KUZVo1qe5OJw4EllEmUC8HV
YXAzzB7eide3VupnTT03HTEMDc3Nkx6H+qA2pw8EYLj1XQpbiEtRhVvFU0vzWLSUD2X0
x63AYdQ3z8K0Le/12Y0sZLy8Lh/R+zWhgA60DSofpIlgorCNmQBkK8MRdQj/YoPjpfPd
d0CIpFUdFrMvylNETHO2zxjwmVDTrQMoriXD24LaALonRMzmS42nMK5W+NO1VEFlJNvf
cskg==
MIME-Version: 1.0
Received: by 10.50.77.136 with SMTP id s8mr4258638igw.74.1353093313742; Fri,
16 Nov 2012 11:15:13 -0800 (PST)
Received: by 10.64.7.19 with HTTP; Fri, 16 Nov 2012 11:15:13 -0800 (PST)
X-Originating-IP: [65.190.69.83]
In-Reply-To: <727e87b5-2b10-4bfa-b5d4-8bc28fe6c06f@googlegroups.com>
References: <727e87b5-2b10-4bfa-b5d4-8bc28fe6c06f@googlegroups.com>
Date: Fri, 16 Nov 2012 14:15:13 -0500
Message-ID: <CAEEcqPFAkWqEYeYJn8nHHbDhuKKkNGKa-FKWpWgEcxUWztx...@mail.gmail.com>
Subject: Re: [fubumvc] Override Xml Serialization
From: "Mike O'Brien" <m...@mikeobrien.net>
To: fubumvc-devel@googlegroups.com
Content-Type: multipart/alternative; boundary=e89a8f3ba05b50467b04cea19664
X-Gm-Message-State: ALoCoQlWDKaUkknWMJKXiIz6NiPo2wo6apRtqwmS3nlhYCTzX9s17pdv19Ym9mKjsQ36nrnNuNJ5
--e89a8f3ba05b50467b04cea19664
Content-Type: text/plain; charset=ISO-8859-1
Oh duh! I guess I can just do an AddService<>(). I just noticed that the
formatter says what mimetypes it can handle. So I guess my question now is
how can I remove/replace just the XmlFormatter? Is there a way to
remove/replace a service by it's concrete type?
On Fri, Nov 16, 2012 at 2:04 PM, hcoverlambda <m...@mikeobrien.net> wrote:
> Is there a way to override xml de/serialization? We need to have some
> control over datetime de/serialization (For ISO 8601) so we're looking to
> hook into with our customization's. It looks like the only place it would
> be possible to do that is to swap out XmlFormatter<https://github.com/DarthFubuMVC/fubumvc/blob/master/src/FubuMVC.Core/Runtime/Formatters/XmlFormatter.cs> with
> our own, which would give us what we want, but I'm not seeing how to do
> that. With json we are just doing a ReplaceService<IJsonReader/IJsonWriter,
> MyFunkyJsonWhatever>() but that's obviously not going to work with
> IFormatter.
>
> --
> You received this message because you are subscribed to the Google Groups
> "FubuMVC Development Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/fubumvc-devel/-/vhnlsdKlWWAJ.
> To post to this group, send email to fubumvc-devel@googlegroups.com.
> To unsubscribe from this group, send email to
> fubumvc-devel+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/fubumvc-devel?hl=en.
>
--e89a8f3ba05b50467b04cea19664
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Oh duh! I guess I can just do an AddService<>(). I just noticed that =
the formatter says what mimetypes it can handle. So I guess my question now=
is how can I remove/replace just the XmlFormatter? Is there a way to remov=
e/replace a service by it's concrete type?<br>
<br><div class=3D"gmail_quote">On Fri, Nov 16, 2012 at 2:04 PM, hcoverlambd=
a <span dir=3D"ltr"><<a href=3D"mailto:m...@mikeobrien.net" target=3D"_bl=
ank">m...@mikeobrien.net</a>></span> wrote:<br><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex">
Is there a way to override xml de/serialization? We need to have some contr=
ol over datetime de/serialization (For ISO 8601) so we're looking to ho=
ok into with our=A0customization's.=A0It looks like the only place it w=
ould be possible to do that is to swap out=A0<a href=3D"https://github.com/=
DarthFubuMVC/fubumvc/blob/master/src/FubuMVC.Core/Runtime/Formatters/XmlFor=
matter.cs" target=3D"_blank">XmlFormatter</a>=A0with our own, which would g=
ive us what we want,=A0but I'm not seeing how to do that. With json we =
are just doing a=A0ReplaceService<IJsonReader/IJsonWriter, MyFunkyJsonWh=
atever>() but that's=A0obviously=A0not going to work with IFormatter=
.<span class=3D"HOEnZb"><font color=3D"#888888"><br>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;FubuMVC Development Group" group.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msg/fubumvc-devel/-/vhnlsdKlWWAJ" target=3D"_blank">https://groups.goo=
gle.com/d/msg/fubumvc-devel/-/vhnlsdKlWWAJ</a>.<br>=20
To post to this group, send email to <a href=3D"mailto:fubumvc-devel@google=
groups.com" target=3D"_blank">fubumvc-devel@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:fubumvc-dev=
el%2Bunsubscribe@googlegroups.com" target=3D"_blank">fubumvc-devel+unsubscr=
ibe@googlegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/fubumvc-devel?hl=3Den" target=3D"_blank">http://groups.google.com/grou=
p/fubumvc-devel?hl=3Den</a>.<br>
</font></span></blockquote></div><br>
--e89a8f3ba05b50467b04cea19664--